From: notmasteryet Date: Wed, 22 Feb 2012 00:27:31 +0000 (-0600) Subject: Fix merge with symbol font fix X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7cad586e6315b4a88078de43d1278f0ed4805808;p=pdf.js.git Fix merge with symbol font fix --- diff --git a/src/fonts.js b/src/fonts.js index e0890c6..0651485 100644 --- a/src/fonts.js +++ b/src/fonts.js @@ -1957,9 +1957,10 @@ var Font = (function FontClosure() { // Moving all symbolic font glyphs into 0xF000 - 0xF0FF range. if (this.isSymbolicFont) { for (var i = 0, ii = glyphs.length; i < ii; i++) { + var cid = i + 1; var code = glyphs[i].unicode; code = kSymbolicFontGlyphOffset | (code & 0xFF); - glyphs[i].unicode = toFontChar[i] = code; + glyphs[i].unicode = toFontChar[cid] = code; } this.useToFontChar = true; }