]> git.parisson.com Git - pdf.js.git/commitdiff
Fix review comments for #436
authorVivien Nicolas <21@vingtetun.org>
Tue, 6 Sep 2011 00:28:06 +0000 (02:28 +0200)
committerVivien Nicolas <21@vingtetun.org>
Tue, 6 Sep 2011 00:28:06 +0000 (02:28 +0200)
fonts.js
pdf.js

index 829d783e627179435eb3e00a6e6aa0876cfec3fb..50eafc5669c95fa73296a277acaed6168dc78c57 100755 (executable)
--- a/fonts.js
+++ b/fonts.js
@@ -2253,7 +2253,7 @@ var Type2CFF = (function() {
           index = code = properties.glyphs[glyph] || index;
 
         var width = widths[code] || defaultWidth;
-        if (index <= 0x1f || (index >= 127 && code <= 255))
+        if (code <= 0x1f || (code >= 127 && code <= 255))
           code += kCmapGlyphOffset;
 
         properties.encoding[index] = code;
diff --git a/pdf.js b/pdf.js
index 51802d9c7dab9856b62c00cf9de72262086bf631..35da1e332d3677edb678bbb4841d54d1d8dbcaf7 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -4304,7 +4304,7 @@ var PartialEvaluator = (function() {
             var index = GlyphsUnicode[glyph] || i;
             glyphsMap[glyph] = encodingMap[i] = index;
 
-            if (index <= 0x1f || (index >= 128 && code <= 255))
+            if (index <= 0x1f || (index >= 127 && index <= 255))
               glyphsMap[glyph] = encodingMap[i] += kCmapGlyphOffset;
           }
         }