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:
commit
a5233f47f2
1 changed files with 10 additions and 8 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue