1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

(#906) fixing glyph width defined by glyph name

This commit is contained in:
notmasteryet 2011-12-07 23:30:48 -06:00
parent cb592d6e51
commit 301a6795db
3 changed files with 11 additions and 2 deletions

View file

@ -2102,9 +2102,9 @@ var Font = (function Font() {
break;
case 'Type1':
var glyphName = this.differences[charcode] || this.encoding[charcode];
if (!isNum(width))
width = this.widths[glyphName];
if (this.noUnicodeAdaptation) {
if (!isNum(width))
width = this.widths[glyphName];
unicode = GlyphsUnicode[glyphName] || charcode;
break;
}