1
0
Fork 0
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:
Jonas Jenwald 2023-05-21 18:15:45 +02:00
parent daa48e5305
commit 5a7beb9f30
7 changed files with 41 additions and 6 deletions

View file

@ -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"]]);