Better debug at glyphs

This commit is contained in:
Saebekassebil 2011-07-07 17:03:24 +02:00
parent 42cdf6bf02
commit dc9316db2d

View File

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