Rework some code to enhance performance (CIIM6/CIIM9 are rejected by the sanitizer now)

This commit is contained in:
Vivien Nicolas 2011-06-17 06:02:29 +02:00
parent f56a742056
commit 40d44174cf
2 changed files with 142 additions and 199 deletions

View file

@ -310,7 +310,8 @@ var Type2Parser = function(aFilePath) {
// Read the Global Subr Index that comes just after the Strings Index
// (cf. "The Compact Font Format Specification" Chapter 16)
dump("Reading Global Subr Index");
var subrs = readFontIndexData(aStream);
var subrs = readFontIndexData(aStream, true);
dump(subrs);
// Reading Private Dict
var private = font.get("Private");