Do not use makeSubStream in the CFF constructor

This commit is contained in:
Vivien Nicolas 2011-06-13 23:23:13 +02:00
parent 3973b01ec9
commit b7449f3bcc
2 changed files with 3 additions and 4 deletions

View file

@ -1142,9 +1142,9 @@ var CFF = function(aFontName, aFontFile) {
var length1 = aFontFile.dict.get("Length1");
var length2 = aFontFile.dict.get("Length2");
var pos = aFontFile.pos;
var ASCIIStream = aFontFile.makeSubStream(pos, length1, aFontFile.dict);
var binaryStream = aFontFile.makeSubStream(pos + length1, length2, aFontFile.dict);
var ASCIIStream = new Stream(aFontFile.getBytes(length1));
var binaryStream = new Stream(aFontFile.getBytes(length2));
this.parser = new Type1Parser(ASCIIStream, binaryStream);
var fontName = this.parser.parse();