]> git.parisson.com Git - pdf.js.git/commitdiff
Reland commit 442d184 but make it works with uncompressed PDF
authorVivien Nicolas <21@vingtetun.org>
Fri, 1 Jul 2011 22:19:24 +0000 (00:19 +0200)
committerVivien Nicolas <21@vingtetun.org>
Fri, 1 Jul 2011 22:19:24 +0000 (00:19 +0200)
fonts.js

index 880480b290176e60dc0e5371dc2456b51a9d75fa..afd48b4015b6d04ba2176c343e2773c0b414d648 100644 (file)
--- a/fonts.js
+++ b/fonts.js
@@ -624,6 +624,8 @@ var Font = (function () {
       };
 
       function replaceCMapTable(cmap, font, properties) {
+        font.pos = (font.start ? font.start : 0) + cmap.length;
+
         var version = FontsUtils.bytesToInteger(font.getBytes(2));
         var numTables = FontsUtils.bytesToInteger(font.getBytes(2));