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.
1 parent 089b60d commit eca6c6cCopy full SHA for eca6c6c
src/fonts.js
@@ -4847,8 +4847,12 @@ var Type1Parser = function type1Parser() {
4847
case '/FamilyBlues':
4848
case '/FamilyOtherBlues':
4849
var blueArray = readNumberArray(eexecStr, i + 1);
4850
- if (blueArray.length > 0 && (blueArray.length % 2) == 0)
+ // *Blue* values may contain invalid data: disables reading of
4851
+ // those values when hinting is disabled.
4852
+ if (blueArray.length > 0 && (blueArray.length % 2) == 0 &&
4853
+ HINTING_ENABLED) {
4854
program.properties.privateData[token.substring(1)] = blueArray;
4855
+ }
4856
break;
4857
case '/StemSnapH':
4858
case '/StemSnapV':
0 commit comments