]> git.parisson.com Git - pdf.js.git/commitdiff
Fix a little typo
authorVivien Nicolas <21@vingtetun.org>
Mon, 29 Aug 2011 22:59:37 +0000 (00:59 +0200)
committerVivien Nicolas <21@vingtetun.org>
Mon, 29 Aug 2011 22:59:37 +0000 (00:59 +0200)
fonts.js

index 2172d12b222600683ea00ee0a82fc02ffbc9e46f..a51786c3eb75ff9b86ae25ddcfe765b8bb900862 100755 (executable)
--- a/fonts.js
+++ b/fonts.js
@@ -870,13 +870,15 @@ var Font = (function Font() {
               }
             }
 
-            if (properties.firstChar < 0x20)
+            if (properties.firstChar < 0x20) {
               var code = 0;
               for (var j = 0; j < glyphs.length; j++) {
                 var glyph = glyphs[j];
                 glyphs[j].unicode += 0x1F;
                 properties.glyphs[glyph.glyph] = encoding[++code] = glyph.unicode;
+              }
             }
+            
             return cmap.data = createCMapTable(glyphs, deltas);
           } else if (format == 6) {
             // Format 6 is a 2-bytes dense mapping, which means the font data