mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Attempt to improve non-embedded Wingdings font support (bug 1652224)
Now that font-substitution has been implemented, we should be able to do much a better job at supporting non-embedded Wingdings fonts. Given that this is a Windows-specific font, see https://en.wikipedia.org/wiki/Wingdings, this is however not guaranteed to work (well) on other platforms.
This commit is contained in:
parent
daa48e5305
commit
5a7beb9f30
7 changed files with 41 additions and 6 deletions
|
@ -281,6 +281,25 @@ const substitutionMap = new Map([
|
|||
fallback: "Helvetica-BoldOblique",
|
||||
},
|
||||
],
|
||||
[
|
||||
"Wingdings",
|
||||
{
|
||||
local: ["Wingdings", "URW Dingbats"],
|
||||
style: NORMAL,
|
||||
},
|
||||
],
|
||||
[
|
||||
"Wingdings-Regular",
|
||||
{
|
||||
alias: "Wingdings",
|
||||
},
|
||||
],
|
||||
[
|
||||
"Wingdings-Bold",
|
||||
{
|
||||
alias: "Wingdings",
|
||||
},
|
||||
],
|
||||
]);
|
||||
|
||||
const fontAliases = new Map([["Arial-Black", "ArialBlack"]]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue