mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 06:38:07 +02:00
Add basic support for non-embedded GillSansMT fonts (issue 18801)
Given the following excerpt from the [Wikipedia article](https://en.wikipedia.org/wiki/Gill_Sans), mapping this to Helvetica should hopefully be fine: > It has been described as "the British Helvetica" because of its lasting popularity in British design.
This commit is contained in:
parent
6daaa2fef7
commit
7db9941e0f
3 changed files with 14 additions and 0 deletions
|
@ -136,6 +136,10 @@ const getNonStdFontMap = getLookupTableFactory(function (t) {
|
|||
t["ComicSansMS-Bold"] = "Comic Sans MS-Bold";
|
||||
t["ComicSansMS-BoldItalic"] = "Comic Sans MS-BoldItalic";
|
||||
t["ComicSansMS-Italic"] = "Comic Sans MS-Italic";
|
||||
t.GillSansMT = "Helvetica";
|
||||
t["GillSansMT-Bold"] = "Helvetica-Bold";
|
||||
t["GillSansMT-BoldItalic"] = "Helvetica-BoldOblique";
|
||||
t["GillSansMT-Italic"] = "Helvetica-Oblique";
|
||||
t.Impact = "Helvetica";
|
||||
t["ItcSymbol-Bold"] = "Helvetica-Bold";
|
||||
t["ItcSymbol-BoldItalic"] = "Helvetica-BoldOblique";
|
||||
|
|
1
test/pdfs/issue18801.pdf.link
Normal file
1
test/pdfs/issue18801.pdf.link
Normal file
|
@ -0,0 +1 @@
|
|||
https://github.com/user-attachments/files/17150005/Test_FontIssue.2.pdf
|
|
@ -3031,6 +3031,15 @@
|
|||
"lastPage": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{
|
||||
"id": "issue18801",
|
||||
"file": "pdfs/issue18801.pdf",
|
||||
"md5": "580258d9a282bfbec7b74da076bbccc9",
|
||||
"link": true,
|
||||
"rounds": 1,
|
||||
"lastPage": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{
|
||||
"id": "issue11139",
|
||||
"file": "pdfs/issue11139.pdf",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue