]> git.parisson.com Git - pdf.js.git/commitdiff
Better debug at glyphs
authorSaebekassebil <saebekassebil@gmail.com>
Thu, 7 Jul 2011 15:03:24 +0000 (17:03 +0200)
committerSaebekassebil <saebekassebil@gmail.com>
Thu, 7 Jul 2011 15:03:24 +0000 (17:03 +0200)
fonts.js

index d85d40b2f2871063c0910a9311b21988ccc7e830..25fef9ac6bc3abfaf6d95afd06c270dae3fbef71 100755 (executable)
--- a/fonts.js
+++ b/fonts.js
@@ -2,7 +2,7 @@
 /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
 
 'use strict';
-
+var missingGlyphs = [];
 var isWorker = (typeof window == 'undefined');
 
 /**
@@ -1661,9 +1661,11 @@ CFF.prototype = {
     for (var i = 0; i < glyphs.length; i++) {
       var glyph = glyphs[i];
       var unicode = GlyphsUnicode[glyph.glyph];
+      
       if (!unicode) {
         if (glyph.glyph != '.notdef') {
-          warn(glyph +
+          missingGlyphs.push(glyph.glyph);
+          warn(glyph.glyph +
                ' does not have an entry in the glyphs unicode dictionary');
         }
       } else {