Merge pull request #2520 from yurydelendik/disable-blues
Disables *Blue* values when HINT_ENABLED == false
This commit is contained in:
commit
7d9938df5f
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user