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:
parent
89cebcb6f9
commit
64cce1269e
@ -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";
|
||||
|
1
test/pdfs/issue15044.pdf.link
Normal file
1
test/pdfs/issue15044.pdf.link
Normal file
@ -0,0 +1 @@
|
||||
https://github.com/mozilla/pdf.js/files/8903822/HY0030809983.pdf
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user