mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Fix symbol fonts with no file.
This commit is contained in:
parent
b5b94a4af3
commit
f1c73edac4
1 changed files with 9 additions and 0 deletions
|
@ -2207,6 +2207,15 @@ var Font = (function FontClosure() {
|
|||
}
|
||||
this.toFontChar = map;
|
||||
this.toUnicode = map;
|
||||
} else if (/Symbol/i.test(fontName)) {
|
||||
var symbols = Encodings.SymbolSetEncoding;
|
||||
for (var charCode in symbols) {
|
||||
var fontChar = GlyphsUnicode[symbols[charCode]];
|
||||
if (!fontChar) {
|
||||
continue;
|
||||
}
|
||||
this.toFontChar[charCode] = fontChar;
|
||||
}
|
||||
} else {
|
||||
for (var charCode in this.toUnicode) {
|
||||
this.toFontChar[charCode] = this.toUnicode[charCode].charCodeAt(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue