mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 08:38:06 +02:00
Map missing glyphs in encoding to notdef glyph.
This commit is contained in:
parent
2fc5e6a9ad
commit
8a536ac346
1 changed files with 6 additions and 0 deletions
|
@ -4698,6 +4698,8 @@ function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
|
|||
glyphId = glyphNames.indexOf(baseEncoding[charCode]);
|
||||
if (glyphId >= 0) {
|
||||
charCodeToGlyphId[charCode] = glyphId;
|
||||
} else {
|
||||
charCodeToGlyphId[charCode] = 0; // notdef
|
||||
}
|
||||
}
|
||||
} else if (!!(properties.flags & FontFlags.Symbolic)) {
|
||||
|
@ -4714,6 +4716,8 @@ function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
|
|||
glyphId = glyphNames.indexOf(baseEncoding[charCode]);
|
||||
if (glyphId >= 0) {
|
||||
charCodeToGlyphId[charCode] = glyphId;
|
||||
} else {
|
||||
charCodeToGlyphId[charCode] = 0; // notdef
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4726,6 +4730,8 @@ function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
|
|||
glyphId = glyphNames.indexOf(glyphName);
|
||||
if (glyphId >= 0) {
|
||||
charCodeToGlyphId[charCode] = glyphId;
|
||||
} else {
|
||||
charCodeToGlyphId[charCode] = 0; // notdef
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue