1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 07:08:08 +02:00

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);
}
// 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(),