Parse Type1 font files to determine the various Length{n} properties, instead of trusting the PDF file (issue 5686, issue 3928)

Fixes 5686.
Fixes 3928.
This commit is contained in:
Jonas Jenwald 2016-03-05 22:32:54 +01:00
parent c40df8a393
commit 05cf709f8e
6 changed files with 141 additions and 4 deletions

View file

@ -2197,6 +2197,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
}
var length1 = fontFile.dict.get('Length1');
var length2 = fontFile.dict.get('Length2');
var length3 = fontFile.dict.get('Length3');
}
}
@ -2207,6 +2208,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
file: fontFile,
length1: length1,
length2: length2,
length3: length3,
loadedName: baseDict.loadedName,
composite: composite,
wideChars: composite,