]> git.parisson.com Git - pdf.js.git/commitdiff
If the glyph is not indexed, ignore it completely in getOrderedCharstrings
authorVivien Nicolas <21@vingtetun.org>
Fri, 26 Aug 2011 13:30:26 +0000 (15:30 +0200)
committerVivien Nicolas <21@vingtetun.org>
Fri, 26 Aug 2011 13:30:26 +0000 (15:30 +0200)
fonts.js

index 43c06276144d7a45588e1f01fcdbb676b3e9ac87..196e9f361e98abf13a6e804269b396e6bd3a8a34 100755 (executable)
--- a/fonts.js
+++ b/fonts.js
@@ -428,7 +428,7 @@ var Font = (function Font() {
       case 'CIDFontType2':
         this.mimetype = 'font/opentype';
 
-        // Repair the TrueType file if it is can be damaged in the point of
+        // Repair the TrueType file. It is can be damaged in the point of
         // view of the sanitizer
         data = this.checkAndRepair(name, file, properties);
         break;
@@ -1900,7 +1900,7 @@ CFF.prototype = {
     for (var i = 0; i < glyphs.length; i++) {
       var glyph = glyphs[i];
       var unicode = properties.glyphs[glyph.glyph];
-      if ('undefined' == typeof(unicode)) {
+      if (!unicode) {
         if (glyph.glyph != '.notdef')
           missings.push(glyph.glyph);
       } else {