Length[1-2] can be a reference
This commit is contained in:
parent
cea0408067
commit
3c77972b8e
5
fonts.js
5
fonts.js
@ -1828,7 +1828,12 @@ var type1Parser = new Type1Parser();
|
|||||||
var CFF = function(name, file, properties) {
|
var CFF = function(name, file, properties) {
|
||||||
// Get the data block containing glyphs and subrs informations
|
// Get the data block containing glyphs and subrs informations
|
||||||
var length1 = file.dict.get('Length1');
|
var length1 = file.dict.get('Length1');
|
||||||
|
if (!IsNum(length1))
|
||||||
|
length1 = length1.num;
|
||||||
|
|
||||||
var length2 = file.dict.get('Length2');
|
var length2 = file.dict.get('Length2');
|
||||||
|
if (!IsNum(length2))
|
||||||
|
length2 = length2.num;
|
||||||
|
|
||||||
var headerBlock = file.getBytes(length1);
|
var headerBlock = file.getBytes(length1);
|
||||||
type1Parser.extractFontHeader(headerBlock, properties);
|
type1Parser.extractFontHeader(headerBlock, properties);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user