mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Use default encoding for standard fonts without a file.
This commit is contained in:
parent
f7fea015a9
commit
b187326022
1 changed files with 7 additions and 0 deletions
|
@ -2216,6 +2216,13 @@ var Font = (function FontClosure() {
|
|||
}
|
||||
this.toFontChar[charCode] = fontChar;
|
||||
}
|
||||
} else if (isStandardFont) {
|
||||
this.toFontChar = [];
|
||||
for (var charCode in properties.defaultEncoding) {
|
||||
var glyphName = properties.differences[charCode] ||
|
||||
properties.defaultEncoding[charCode];
|
||||
this.toFontChar[charCode] = GlyphsUnicode[glyphName];
|
||||
}
|
||||
} 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