We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bf0abd6 + eca6c6c commit 7d9938dCopy full SHA for 7d9938d
src/fonts.js
@@ -4859,8 +4859,12 @@ var Type1Parser = function type1Parser() {
4859
case '/FamilyBlues':
4860
case '/FamilyOtherBlues':
4861
var blueArray = readNumberArray(eexecStr, i + 1);
4862
- if (blueArray.length > 0 && (blueArray.length % 2) == 0)
+ // *Blue* values may contain invalid data: disables reading of
4863
+ // those values when hinting is disabled.
4864
+ if (blueArray.length > 0 && (blueArray.length % 2) == 0 &&
4865
+ HINTING_ENABLED) {
4866
program.properties.privateData[token.substring(1)] = blueArray;
4867
+ }
4868
break;
4869
case '/StemSnapH':
4870
case '/StemSnapV':
0 commit comments