1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Merge pull request #214 from saebekassebil/master

Dict object improvements. Performance.
This commit is contained in:
Andreas Gal 2011-07-08 00:59:00 -07:00
commit df79f10f2f
2 changed files with 40 additions and 33 deletions

View file

@ -2,7 +2,7 @@
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
'use strict';
var missingGlyphs = [];
var isWorker = (typeof window == 'undefined');
/**
@ -1645,9 +1645,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 {