]> git.parisson.com Git - pdf.js.git/commitdiff
Function replaceCMapTable() was not setting the font pos pointer to the correct place...
authorAdil Allawi <adil@diwan.com>
Tue, 28 Jun 2011 14:14:38 +0000 (15:14 +0100)
committerAdil Allawi <adil@diwan.com>
Tue, 28 Jun 2011 14:14:38 +0000 (15:14 +0100)
fonts.js

index 728bc5c68cfa488452e7c3ee9b1da53cfc08cb22..99d6dd218e36c712a0b35718e4d15ef95a59734f 100644 (file)
--- a/fonts.js
+++ b/fonts.js
@@ -425,6 +425,7 @@ var Font = (function () {
       };
 
       function replaceCMapTable(cmap, font, properties) {
+        font.pos = cmap.length;
         var version = FontsUtils.bytesToInteger(font.getBytes(2));
         var numTables = FontsUtils.bytesToInteger(font.getBytes(2));