Add basic support for non-embedded ArialUnicodeMS fonts (issue 15044)

This appears to be a Microsoft-specific version of the regular Arial font, hence we simply map this to Helvetica in the same way that we treat many other Arial-named fonts.
This commit is contained in:
Jonas Jenwald 2022-06-15 10:29:24 +02:00
parent 89cebcb6f9
commit 64cce1269e
3 changed files with 14 additions and 1 deletions

View File

@ -54,10 +54,14 @@ const getStdFontMap = getLookupTableFactory(function (t) {
t["Arial-Bold"] = "Helvetica-Bold";
t["Arial-BoldItalic"] = "Helvetica-BoldOblique";
t["Arial-Italic"] = "Helvetica-Oblique";
t.ArialMT = "Helvetica";
t["Arial-BoldItalicMT"] = "Helvetica-BoldOblique";
t["Arial-BoldMT"] = "Helvetica-Bold";
t["Arial-ItalicMT"] = "Helvetica-Oblique";
t.ArialMT = "Helvetica";
t.ArialUnicodeMS = "Helvetica";
t["ArialUnicodeMS-Bold"] = "Helvetica-Bold";
t["ArialUnicodeMS-BoldItalic"] = "Helvetica-BoldOblique";
t["ArialUnicodeMS-Italic"] = "Helvetica-Oblique";
t["Courier-BoldItalic"] = "Courier-BoldOblique";
t["Courier-Italic"] = "Courier-Oblique";
t.CourierNew = "Courier";

View File

@ -0,0 +1 @@
https://github.com/mozilla/pdf.js/files/8903822/HY0030809983.pdf

View File

@ -4966,6 +4966,14 @@
"lastPage": 1,
"type": "eq"
},
{ "id": "issue15044",
"file": "pdfs/issue15044.pdf",
"md5": "a1ef114e432df51f0c6cbe22c66c5c2e",
"rounds": 1,
"link": true,
"lastPage": 1,
"type": "eq"
},
{ "id": "gesamt",
"file": "pdfs/gesamt.pdf",
"md5": "743aaa6f46ed0a42864f079d632d942e",