mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 01:28:06 +02:00
If the glyph is not indexed, ignore it completely in getOrderedCharstrings
This commit is contained in:
parent
9ce69f94a6
commit
1cf4fc8782
1 changed files with 2 additions and 2 deletions
4
fonts.js
4
fonts.js
|
@ -428,7 +428,7 @@ var Font = (function Font() {
|
|||
case 'CIDFontType2':
|
||||
this.mimetype = 'font/opentype';
|
||||
|
||||
// Repair the TrueType file if it is can be damaged in the point of
|
||||
// Repair the TrueType file. It is can be damaged in the point of
|
||||
// view of the sanitizer
|
||||
data = this.checkAndRepair(name, file, properties);
|
||||
break;
|
||||
|
@ -1900,7 +1900,7 @@ CFF.prototype = {
|
|||
for (var i = 0; i < glyphs.length; i++) {
|
||||
var glyph = glyphs[i];
|
||||
var unicode = properties.glyphs[glyph.glyph];
|
||||
if ('undefined' == typeof(unicode)) {
|
||||
if (!unicode) {
|
||||
if (glyph.glyph != '.notdef')
|
||||
missings.push(glyph.glyph);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue