Merge pull request #2630 from yurydelendik/width-cid

Fixes reading of the widths for CID fonts
This commit is contained in:
Brendan Dahl 2013-01-31 07:12:47 -08:00
commit 4a19437537
3 changed files with 12 additions and 6 deletions

View File

@ -1030,20 +1030,16 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
var widths = dict.get('W');
if (widths) {
var start = 0, end = 0;
for (var i = 0, ii = widths.length; i < ii; i++) {
var start = widths[i++];
var code = xref.fetchIfRef(widths[i]);
if (isArray(code)) {
for (var j = 0, jj = code.length; j < jj; j++)
glyphsWidths[start++] = code[j];
start = 0;
} else if (start) {
} else {
var width = widths[++i];
for (var j = start; j <= code; j++)
glyphsWidths[j] = width;
start = 0;
} else {
start = code;
}
}
}

View File

@ -0,0 +1 @@
http://borel.slu.edu/pub/metanet.pdf

View File

@ -824,6 +824,15 @@
"link": true,
"type": "load"
},
{ "id": "issue2627",
"file": "pdfs/issue2627.pdf",
"md5": "1b6b2f19f4e1e1b926afb353b41fe6b2",
"rounds": 1,
"link": true,
"firstPage": 4,
"lastPage": 4,
"type": "load"
},
{ "id": "issue1878",
"file": "pdfs/issue1878.pdf",
"md5": "b4fb0ce7c19368e7104dce3d0d34bcb3",