Merge pull request #2520 from yurydelendik/disable-blues

Disables *Blue* values when HINT_ENABLED == false
This commit is contained in:
Brendan Dahl 2013-01-04 16:21:29 -08:00
commit 7d9938df5f

View File

@ -4859,8 +4859,12 @@ var Type1Parser = function type1Parser() {
case '/FamilyBlues':
case '/FamilyOtherBlues':
var blueArray = readNumberArray(eexecStr, i + 1);
if (blueArray.length > 0 && (blueArray.length % 2) == 0)
// *Blue* values may contain invalid data: disables reading of
// those values when hinting is disabled.
if (blueArray.length > 0 && (blueArray.length % 2) == 0 &&
HINTING_ENABLED) {
program.properties.privateData[token.substring(1)] = blueArray;
}
break;
case '/StemSnapH':
case '/StemSnapV':