Use the same non-embedded Wingdings fallback for fonts named "Wingdings-Regular" too (PR 5463 follow-up, issue 11451)

This patch extends the existing heuristics, which are really the best that we can do in general for these kinds of non-embedded *and* non-standard fonts.

Furthermore, this patch also tries to improve the copy-and-paste behaviour for non-embedded Wingdings fonts by also using the `ZapfDingbatsEncoding` in this case.

*Note:* I'm not sure that adding additional tests for Wingdings fonts matters that much, given how limited our "support" for them really is.
This commit is contained in:
Jonas Jenwald 2020-02-24 17:34:15 +01:00
parent dd893d59d9
commit c55d30a715
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) {