1
0
Fork 0
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:
notmasteryet 2012-01-21 17:18:36 -06:00
parent f74772f40e
commit c6662d12e1
3 changed files with 11 additions and 3 deletions

View file

@ -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);