From: Adil Allawi Date: Tue, 28 Jun 2011 14:14:38 +0000 (+0100) Subject: Function replaceCMapTable() was not setting the font pos pointer to the correct place... X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4e24288;p=pdf.js.git Function replaceCMapTable() was not setting the font pos pointer to the correct place to read the cmap. Caused Mac PDFs to fail because the cmap was not correctly rewritten. --- diff --git a/fonts.js b/fonts.js index 728bc5c..99d6dd2 100644 --- 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));