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:
commit
a5233f47f2
@ -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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user