From: Saebekassebil Date: Thu, 7 Jul 2011 15:03:24 +0000 (+0200) Subject: Better debug at glyphs X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=dc9316db2daa67e951a1055d2e0237b78798e4e6;p=pdf.js.git Better debug at glyphs --- diff --git a/fonts.js b/fonts.js index d85d40b..25fef9a 100755 --- 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 {