Disable hinting until it works

This commit is contained in:
Vivien Nicolas 2011-09-10 20:00:27 +02:00
parent 13bf137220
commit cf93f23178

View File

@ -12,6 +12,9 @@ var kMaxWaitForFontFace = 1000;
// Unicode Private Use Area // Unicode Private Use Area
var kCmapGlyphOffset = 0xE000; var kCmapGlyphOffset = 0xE000;
// Until hinting is fully supported this constant can be used
var kHintingEnabled = false;
/** /**
* Hold a map of decoded fonts and of the standard fourteen Type1 * Hold a map of decoded fonts and of the standard fourteen Type1
* fonts and their acronyms. * fonts and their acronyms.
@ -1526,6 +1529,9 @@ var Type1Parser = function() {
i++; i++;
continue; continue;
} }
} else if (!kHintingEnabled && (value == 1 || value == 2)) {
charstring.push('drop', 'drop', 'drop', 'drop', 'drop', 'drop');
continue;
} }
command = charStringDictionary['12'][escape]; command = charStringDictionary['12'][escape];
@ -1550,6 +1556,9 @@ var Type1Parser = function() {
charstring.push(lsb, 'hmoveto'); charstring.push(lsb, 'hmoveto');
continue; continue;
} else if (!kHintingEnabled && (value == 1 || value == 3)) {
charstring.push('drop', 'drop');
continue;
} }
command = charStringDictionary[value]; command = charStringDictionary[value];
} }