Skip to content

Commit

Permalink
Add basic support for non-embedded GillSansMT fonts (issue 18801)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Snuffleupagus committed Sep 26, 2024
1 parent 6daaa2f commit 7db9941
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/standard_fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 1 addition & 0 deletions test/pdfs/issue18801.pdf.link
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/user-attachments/files/17150005/Test_FontIssue.2.pdf
9 changes: 9 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7db9941

Please sign in to comment.