mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Defines at least one glyph if none was found
This commit is contained in:
parent
c129ecea8a
commit
b6ad7fd103
1 changed files with 6 additions and 0 deletions
|
@ -3557,6 +3557,12 @@ var Font = (function FontClosure() {
|
|||
this.glyphNameMap = properties.glyphNameMap;
|
||||
}
|
||||
|
||||
if (glyphs.length === 0) {
|
||||
// defines at least one glyph
|
||||
glyphs.push({ unicode: 0xF000, code: 0xF000, glyph: '.notdef' });
|
||||
ids.push(0);
|
||||
}
|
||||
|
||||
// Converting glyphs and ids into font's cmap table
|
||||
cmap.data = createCMapTable(glyphs, ids);
|
||||
var unicodeIsEnabled = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue