]> git.parisson.com Git - pdf.js.git/commitdiff
Clearing font checksum adjustment field
authornotmasteryet <async.processingjs@yahoo.com>
Sun, 10 Jul 2011 21:47:09 +0000 (16:47 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Sun, 10 Jul 2011 21:47:09 +0000 (16:47 -0500)
fonts.js

index 20d9cfeefc0cb7ecf6a8957f86470704cc23c478..1f0a6a21122356fc5e08b073be659293e63a0545 100755 (executable)
--- a/fonts.js
+++ b/fonts.js
@@ -705,6 +705,9 @@ var Font = (function() {
         var data = file.getBytes(length);
         file.pos = previousPosition;
 
+        if (tag == 'head')
+          data[8] = data[9] = data[10] = data[11] = 0; // clearing checksum adjustment
+
         return {
           tag: tag,
           checksum: checksum,