Fix cff regression.
This commit is contained in:
parent
6ec62cd148
commit
8c5d33c86b
10
src/fonts.js
10
src/fonts.js
@ -4362,16 +4362,18 @@ var CFFCompiler = (function CFFCompilerClosure() {
|
||||
output.add(charStrings);
|
||||
|
||||
if (cff.isCIDFont) {
|
||||
// For some reason FDSelect must be in front of FDArray on windows. OSX
|
||||
// and linux don't seem to care.
|
||||
topDictTracker.setEntryLocation('FDSelect', [output.length], output);
|
||||
var fdSelect = this.compileFDSelect(cff.fdSelect.raw);
|
||||
output.add(fdSelect);
|
||||
|
||||
var compiled = this.compileTopDicts(cff.fdArray, output.length);
|
||||
topDictTracker.setEntryLocation('FDArray', [output.length], output);
|
||||
output.add(compiled.output);
|
||||
var fontDictTrackers = compiled.trackers;
|
||||
|
||||
this.compilePrivateDicts(cff.fdArray, fontDictTrackers, output);
|
||||
|
||||
topDictTracker.setEntryLocation('FDSelect', [output.length], output);
|
||||
var fdSelect = this.compileFDSelect(cff.fdSelect.raw);
|
||||
output.add(fdSelect);
|
||||
}
|
||||
|
||||
this.compilePrivateDicts([cff.topDict], [topDictTracker], output);
|
||||
|
1
test/pdfs/issue1422.pdf.link
Normal file
1
test/pdfs/issue1422.pdf.link
Normal file
@ -0,0 +1 @@
|
||||
http://www.cpi.si/files/cpi/userfiles/TrajnostniRazvoj/06_Prosti_cas.pdf
|
@ -558,5 +558,13 @@
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue1422",
|
||||
"file": "pdfs/issue1422.pdf",
|
||||
"md5": "f7a732a86960b330b8108d5cdece19e3",
|
||||
"rounds": 1,
|
||||
"pageLimit": 1,
|
||||
"link": true,
|
||||
"type": "eq"
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user