]> git.parisson.com Git - pdf.js.git/commitdiff
small fixes: index and formatting
authornotmasteryet <async.processingjs@yahoo.com>
Thu, 29 Sep 2011 02:45:22 +0000 (21:45 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Thu, 29 Sep 2011 02:45:22 +0000 (21:45 -0500)
fonts.js

index 3b4bfbd622709bee8b83d055a4a62632c368de68..da966c1861c24a5f915c9a568882afe630eba5f8 100644 (file)
--- a/fonts.js
+++ b/fonts.js
@@ -429,7 +429,7 @@ var Font = (function Font() {
       return;
     }
 
-    // Trying to fix encoding using glyph widths and CIDSystemInfo
+    // Trying to fix encoding using glyph widths and CIDSystemInfo.
     this.fixWidths(properties);
 
     if (!file) {
@@ -1429,9 +1429,9 @@ var Font = (function Font() {
         var unicode = cidToUnicode[i];
         if (isArray(unicode)) {
           if (glyph in glyphsWidths) {
-          var length = unicode.length;
+            var length = unicode.length;
             for (j = 0; j < length; j++) {
-              k = unicode[i];
+              k = unicode[j];
               encoding[k] = {
                 unicode: k <= 0x1f || (k >= 127 && k <= 255) ?
                   k + kCmapGlyphOffset : k,