Merge pull request #11625 from Snuffleupagus/issue-11451

Use the same non-embedded Wingdings fallback for fonts named "Wingdings-Regular" too (PR 5463 follow-up, issue 11451)
This commit is contained in:
Tim van der Meij 2020-02-25 23:18:19 +01:00 committed by GitHub
commit 30e0f028b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -2373,7 +2373,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
if (!properties.file) {
if (/Symbol/i.test(properties.name)) {
encoding = SymbolSetEncoding;
} else if (/Dingbats/i.test(properties.name)) {
} else if (/Dingbats|Wingdings/i.test(properties.name)) {
encoding = ZapfDingbatsEncoding;
}
}

View File

@ -119,6 +119,7 @@ const getNonStdFontMap = getLookupTableFactory(function(t) {
t["NuptialScript"] = "Times-Italic";
t["SegoeUISymbol"] = "Helvetica";
t["Wingdings"] = "ZapfDingbats";
t["Wingdings-Regular"] = "ZapfDingbats";
});
const getSerifFonts = getLookupTableFactory(function(t) {