]> git.parisson.com Git - pdf.js.git/commitdiff
Fix merge with symbol font fix (part 2)
authornotmasteryet <async.processingjs@yahoo.com>
Wed, 22 Feb 2012 01:56:35 +0000 (19:56 -0600)
committernotmasteryet <async.processingjs@yahoo.com>
Wed, 22 Feb 2012 01:56:35 +0000 (19:56 -0600)
src/fonts.js

index 0651485fcd01a23220b03f65ee975eda90801a44..3955f91367ac426442e9496928e8df54eb58b8c2 100644 (file)
@@ -1957,10 +1957,9 @@ 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[cid] = code;
+            var code = glyphs[i].unicode & 0xFF;
+            var fontCharCode = kSymbolicFontGlyphOffset | code;
+            glyphs[i].unicode = toFontChar[code] = fontCharCode;
           }
           this.useToFontChar = true;
         }