Merge pull request #13516 from Snuffleupagus/standard-fonts-disableFontFace

Always use standard font data, with `disableFontFace` set in the API (PR 12726 follow-up)
This commit is contained in:
Tim van der Meij 2021-06-09 21:35:37 +02:00 committed by GitHub
commit a5233f47f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -397,14 +397,16 @@ class PartialEvaluator {
return new Stream(cachedData); return new Stream(cachedData);
} }
// The symbol fonts are not consistent across platforms, always load the if (!this.options.disableFontFace) {
// standard font data for them. // The symbol fonts are not consistent across platforms, always load the
if ( // standard font data for them.
this.options.useSystemFonts && if (
name !== "Symbol" && this.options.useSystemFonts &&
name !== "ZapfDingbats" name !== "Symbol" &&
) { name !== "ZapfDingbats"
return null; ) {
return null;
}
} }
const standardFontNameToFileName = getFontNameToFileMap(), const standardFontNameToFileName = getFontNameToFileMap(),