Fixes encoding reading in CFF fonts
This commit is contained in:
parent
1f9b91b31b
commit
b63da8bc82
@ -5941,13 +5941,13 @@ var CFFParser = (function CFFParserClosure() {
|
||||
if (pos == 0 || pos == 1) {
|
||||
predefined = true;
|
||||
format = pos;
|
||||
var gid = 1;
|
||||
var baseEncoding = pos ? Encodings.ExpertEncoding :
|
||||
Encodings.StandardEncoding;
|
||||
for (var i = 0, ii = charset.length; i < ii; i++) {
|
||||
var index = baseEncoding.indexOf(charset[i]);
|
||||
if (index != -1)
|
||||
encoding[index] = gid++;
|
||||
if (index != -1) {
|
||||
encoding[index] = i;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var dataStart = pos;
|
||||
|
1
test/pdfs/issue2386.pdf.link
Normal file
1
test/pdfs/issue2386.pdf.link
Normal file
@ -0,0 +1 @@
|
||||
http://www-support-downloads.sonymobile.com/st25/userguide_EN_ST25_1263-3851.1.pdf
|
@ -750,6 +750,14 @@
|
||||
"link": true,
|
||||
"type": "load"
|
||||
},
|
||||
{ "id": "issue2386",
|
||||
"file": "pdfs/issue2386.pdf",
|
||||
"md5": "7dc787639aa6765214e9ff5494d231ed",
|
||||
"rounds": 1,
|
||||
"pageLimit": 2,
|
||||
"link": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue2337",
|
||||
"file": "pdfs/issue2337.pdf",
|
||||
"md5": "ea10f4131202b9b8f2a6cb7770d3f185",
|
||||
|
Loading…
Reference in New Issue
Block a user