]> git.parisson.com Git - pdf.js.git/commitdiff
Fix a small Type1 encoding parsing error that cause the first Type1 font of the Type1...
authorVivien Nicolas <21@vingtetun.org>
Sat, 10 Sep 2011 12:50:46 +0000 (14:50 +0200)
committerVivien Nicolas <21@vingtetun.org>
Sat, 10 Sep 2011 12:50:46 +0000 (14:50 +0200)
fonts.js

index 9f835f9bc00f8e66ab5e3a58fe379466eb75ca04..381f81018817333ac389485a5ea65b53b8557970 100755 (executable)
--- a/fonts.js
+++ b/fonts.js
@@ -1845,10 +1845,10 @@ var Type1Parser = function() {
               if (token == 'dup') {
                 var index = parseInt(getToken(), 10);
                 var glyph = getToken();
-              
+
                 if ('undefined' == typeof(properties.differences[index])) {
                   var mapping = properties.encoding[index] || {};
-                  mapping.unicode = GlyphsUnicode[glyph] || j;
+                  mapping.unicode = GlyphsUnicode[glyph] || index;
                   properties.glyphs[glyph] = properties.encoding[index] = mapping;
                 }
                 getToken(); // read the in 'put'