1
0
Fork 0
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:
Jonas Jenwald 2024-09-26 16:33:32 +02:00
parent 6daaa2fef7
commit 7db9941e0f
3 changed files with 14 additions and 0 deletions

View file

@ -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";

View file

@ -0,0 +1 @@
https://github.com/user-attachments/files/17150005/Test_FontIssue.2.pdf

View file

@ -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",