diff --git a/src/core/cff_parser.js b/src/core/cff_parser.js index 44e0b481e50ed..d61a7f514bca5 100644 --- a/src/core/cff_parser.js +++ b/src/core/cff_parser.js @@ -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;