mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
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:
parent
dd893d59d9
commit
c55d30a715
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue