Merge pull request #15901 from calixteman/15289_followup
Avoid null ExpansionFactor in type1 fonts (follow-up of #15289)
This commit is contained in:
commit
fcaeb5db88
@ -654,9 +654,14 @@ class Type1Parser {
|
|||||||
case "BlueFuzz":
|
case "BlueFuzz":
|
||||||
case "BlueScale":
|
case "BlueScale":
|
||||||
case "LanguageGroup":
|
case "LanguageGroup":
|
||||||
case "ExpansionFactor":
|
|
||||||
program.properties.privateData[token] = this.readNumber();
|
program.properties.privateData[token] = this.readNumber();
|
||||||
break;
|
break;
|
||||||
|
case "ExpansionFactor":
|
||||||
|
// Firefox doesn't render correctly a font with a null factor on
|
||||||
|
// Windows (see issue 15289), hence we just reset it to its default
|
||||||
|
// value (0.06).
|
||||||
|
program.properties.privateData[token] = this.readNumber() || 0.06;
|
||||||
|
break;
|
||||||
case "ForceBold":
|
case "ForceBold":
|
||||||
program.properties.privateData[token] = this.readBoolean();
|
program.properties.privateData[token] = this.readBoolean();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user