mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Changing glyphNameMap and GlyphUnicode lookup order
This commit is contained in:
parent
f74772f40e
commit
c6662d12e1
3 changed files with 11 additions and 3 deletions
|
@ -2235,9 +2235,8 @@ var Font = (function FontClosure() {
|
|||
}
|
||||
|
||||
// MacRoman encoding address by re-encoding the cmap table
|
||||
unicode = glyphName in GlyphsUnicode ?
|
||||
GlyphsUnicode[glyphName] :
|
||||
this.glyphNameMap[glyphName];
|
||||
unicode = glyphName in this.glyphNameMap ?
|
||||
this.glyphNameMap[glyphName] : GlyphsUnicode[glyphName];
|
||||
break;
|
||||
default:
|
||||
warn('Unsupported font type: ' + this.type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue