From: notmasteryet Date: Sun, 10 Jul 2011 21:47:09 +0000 (-0500) Subject: Clearing font checksum adjustment field X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9b6999704646b3ead54d3b4ae5c84a0911276e34;p=pdf.js.git Clearing font checksum adjustment field --- diff --git a/fonts.js b/fonts.js index 20d9cfe..1f0a6a2 100755 --- 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,