From: Vivien Nicolas <21@vingtetun.org> Date: Fri, 1 Jul 2011 22:19:24 +0000 (+0200) Subject: Reland commit 442d184 but make it works with uncompressed PDF X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d10cf7c9298f5eccf7fff70a78b0b48f77375227;p=pdf.js.git Reland commit 442d184 but make it works with uncompressed PDF --- diff --git a/fonts.js b/fonts.js index 880480b..afd48b4 100644 --- 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));