mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fix Symbol fonts without font file but with Encoding dictionary (issue 5238)
This commit is contained in:
parent
15681adbb9
commit
b16c973d9d
4 changed files with 15 additions and 0 deletions
|
@ -2486,6 +2486,13 @@ var Font = (function FontClosure() {
|
|||
}
|
||||
this.toFontChar[charCode] = fontChar;
|
||||
}
|
||||
for (charCode in properties.differences) {
|
||||
fontChar = GlyphsUnicode[properties.differences[charCode]];
|
||||
if (!fontChar) {
|
||||
continue;
|
||||
}
|
||||
this.toFontChar[charCode] = fontChar;
|
||||
}
|
||||
} else if (/Dingbats/i.test(fontName)) {
|
||||
var dingbats = Encodings.ZapfDingbatsEncoding;
|
||||
for (charCode in dingbats) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue