Skip to content

Commit

Permalink
Avoid null ExpansionFactor in type1 fonts (follow-up of #15289)
Browse files Browse the repository at this point in the history
  • Loading branch information
calixteman committed Jan 7, 2023
1 parent e1f7355 commit 698d4d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/type1_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,9 +654,11 @@ class Type1Parser {
case "BlueFuzz":
case "BlueScale":
case "LanguageGroup":
case "ExpansionFactor":
program.properties.privateData[token] = this.readNumber();
break;
case "ExpansionFactor":
program.properties.privateData[token] = this.readNumber() || 0.06;
break;
case "ForceBold":
program.properties.privateData[token] = this.readBoolean();
break;
Expand Down

0 comments on commit 698d4d5

Please sign in to comment.