Fixes encoding reading in CFF fonts

This commit is contained in:
Yury Delendik 2012-12-08 23:04:37 -06:00
parent 1f9b91b31b
commit b63da8bc82
3 changed files with 12 additions and 3 deletions

View File

@ -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;

View File

@ -0,0 +1 @@
http://www-support-downloads.sonymobile.com/st25/userguide_EN_ST25_1263-3851.1.pdf

View File

@ -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",