From d10cf7c9298f5eccf7fff70a78b0b48f77375227 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Sat, 2 Jul 2011 00:19:24 +0200 Subject: [PATCH] Reland commit 442d184 but make it works with uncompressed PDF --- fonts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fonts.js b/fonts.js index 880480b29..afd48b401 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));