mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #1448 from brendandahl/fdselectorder
Fix cff regression.
This commit is contained in:
commit
fed4cb194e
1 changed files with 6 additions and 4 deletions
10
src/fonts.js
10
src/fonts.js
|
@ -4375,16 +4375,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue