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

Merge pull request #911 from notmasteryet/issue-906

(#906) fixing glyph width defined by glyph name
This commit is contained in:
Artur Adib 2011-12-08 07:02:23 -08:00
commit 7ea770fd08
3 changed files with 11 additions and 2 deletions

View file

@ -2108,9 +2108,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;
}