(#906) fixing glyph width defined by glyph name
This commit is contained in:
parent
cb592d6e51
commit
301a6795db
@ -2102,9 +2102,9 @@ var Font = (function Font() {
|
|||||||
break;
|
break;
|
||||||
case 'Type1':
|
case 'Type1':
|
||||||
var glyphName = this.differences[charcode] || this.encoding[charcode];
|
var glyphName = this.differences[charcode] || this.encoding[charcode];
|
||||||
|
if (!isNum(width))
|
||||||
|
width = this.widths[glyphName];
|
||||||
if (this.noUnicodeAdaptation) {
|
if (this.noUnicodeAdaptation) {
|
||||||
if (!isNum(width))
|
|
||||||
width = this.widths[glyphName];
|
|
||||||
unicode = GlyphsUnicode[glyphName] || charcode;
|
unicode = GlyphsUnicode[glyphName] || charcode;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
1
test/pdfs/bpl13210.pdf.link
Normal file
1
test/pdfs/bpl13210.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13210/bpl13210.pdf
|
@ -296,6 +296,14 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "bpl13210",
|
||||||
|
"file": "pdfs/bpl13210.pdf",
|
||||||
|
"md5": "8a08512baa9fa95378d9ad4b995947c7",
|
||||||
|
"link": true,
|
||||||
|
"pageLimit": 5,
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "tutorial",
|
{ "id": "tutorial",
|
||||||
"file": "pdfs/tutorial.pdf",
|
"file": "pdfs/tutorial.pdf",
|
||||||
"md5": "6e122f618c27f3aa9a689423e3be6b8d",
|
"md5": "6e122f618c27f3aa9a689423e3be6b8d",
|
||||||
|
Loading…
Reference in New Issue
Block a user