mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Better debug at glyphs
This commit is contained in:
parent
42cdf6bf02
commit
dc9316db2d
1 changed files with 4 additions and 2 deletions
6
fonts.js
6
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue