Merge pull request #15900 from calixteman/15289
Set ExpansionFactor to 0.06 when it's equals to 0 in the private dict of CFF fonts
This commit is contained in:
commit
e1f7355de4
@ -792,6 +792,12 @@ class CFFParser {
|
||||
);
|
||||
parentDict.privateDict = privateDict;
|
||||
|
||||
if (privateDict.getByName("ExpansionFactor") === 0) {
|
||||
// Firefox doesn't render correctly such a font on Windows (see issue
|
||||
// 15289), hence we just reset it to its default value.
|
||||
privateDict.setByName("ExpansionFactor", 0.06);
|
||||
}
|
||||
|
||||
// Parse the Subrs index also since it's relative to the private dict.
|
||||
if (!privateDict.getByName("Subrs")) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user