mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 08:38:06 +02:00
Fix Type1 width; TrueType special characters
This commit is contained in:
parent
343e174951
commit
a1d2c1c6d3
1 changed files with 3 additions and 2 deletions
|
@ -1996,7 +1996,8 @@ var Font = (function Font() {
|
|||
case 'Type1':
|
||||
var glyphName = this.differences[charcode] || this.encoding[charcode];
|
||||
if (this.noUnicodeAdaptation) {
|
||||
width = this.widths[glyphName];
|
||||
if (!isNum(width))
|
||||
width = this.widths[glyphName];
|
||||
unicode = GlyphsUnicode[glyphName] || charcode;
|
||||
break;
|
||||
}
|
||||
|
@ -2024,7 +2025,7 @@ var Font = (function Font() {
|
|||
}
|
||||
if (this.hasShortCmap) {
|
||||
var j = Encodings.MacRomanEncoding.indexOf(glyphName);
|
||||
unicode = j >= 0 ? adaptUnicode(j) :
|
||||
unicode = j >= 0 && !isSpecialUnicode(j) ? j :
|
||||
this.glyphNameMap[glyphName];
|
||||
} else {
|
||||
unicode = glyphName in GlyphsUnicode ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue