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,6 +397,7 @@ class PartialEvaluator {
return new Stream(cachedData); return new Stream(cachedData);
} }
if (!this.options.disableFontFace) {
// The symbol fonts are not consistent across platforms, always load the // The symbol fonts are not consistent across platforms, always load the
// standard font data for them. // standard font data for them.
if ( if (
@ -406,6 +407,7 @@ class PartialEvaluator {
) { ) {
return null; return null;
} }
}
const standardFontNameToFileName = getFontNameToFileMap(), const standardFontNameToFileName = getFontNameToFileMap(),
filename = standardFontNameToFileName[name]; filename = standardFontNameToFileName[name];