Skip to content

Commit

Permalink
Merge pull request #13516 from Snuffleupagus/standard-fonts-disableFo…
Browse files Browse the repository at this point in the history
…ntFace

Always use standard font data, with `disableFontFace` set in the API (PR 12726 follow-up)
  • Loading branch information
timvandermeij authored Jun 9, 2021
2 parents 2a65455 + 69477bf commit a5233f4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/core/evaluator.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,14 +397,16 @@ class PartialEvaluator {
return new Stream(cachedData);
}

// The symbol fonts are not consistent across platforms, always load the
// standard font data for them.
if (
this.options.useSystemFonts &&
name !== "Symbol" &&
name !== "ZapfDingbats"
) {
return null;
if (!this.options.disableFontFace) {
// The symbol fonts are not consistent across platforms, always load the
// standard font data for them.
if (
this.options.useSystemFonts &&
name !== "Symbol" &&
name !== "ZapfDingbats"
) {
return null;
}
}

const standardFontNameToFileName = getFontNameToFileMap(),
Expand Down

0 comments on commit a5233f4

Please sign in to comment.