From 189183aa1a178ef10079c86b8560e06a739cc8a5 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Wed, 18 Dec 2024 09:36:19 +0100 Subject: [PATCH] Add basic support for non-embedded HelveticaLTStd-Bold fonts (issue 19234) --- src/core/standard_fonts.js | 1 + test/pdfs/issue19234.pdf.link | 1 + test/test_manifest.json | 9 +++++++++ 3 files changed, 11 insertions(+) create mode 100644 test/pdfs/issue19234.pdf.link diff --git a/src/core/standard_fonts.js b/src/core/standard_fonts.js index 56212b9019716..9e7cea5091b9b 100644 --- a/src/core/standard_fonts.js +++ b/src/core/standard_fonts.js @@ -77,6 +77,7 @@ const getStdFontMap = getLookupTableFactory(function (t) { t.CourierNewPSMT = "Courier"; t["Helvetica-BoldItalic"] = "Helvetica-BoldOblique"; t["Helvetica-Italic"] = "Helvetica-Oblique"; + t["HelveticaLTStd-Bold"] = "Helvetica-Bold"; t["Symbol-Bold"] = "Symbol"; t["Symbol-BoldItalic"] = "Symbol"; t["Symbol-Italic"] = "Symbol"; diff --git a/test/pdfs/issue19234.pdf.link b/test/pdfs/issue19234.pdf.link new file mode 100644 index 0000000000000..00576c280b665 --- /dev/null +++ b/test/pdfs/issue19234.pdf.link @@ -0,0 +1 @@ +https://github.com/user-attachments/files/18172261/Tax3921.pdf diff --git a/test/test_manifest.json b/test/test_manifest.json index 1440d836f0b98..966f9f183b420 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -11223,5 +11223,14 @@ "rounds": 1, "disableFontFace": true, "type": "eq" + }, + { + "id": "issue19234", + "file": "pdfs/issue19234.pdf", + "md5": "2b57e3c43fa0ae4a606c13df007c202f", + "rounds": 1, + "link": true, + "disableFontFace": true, + "type": "eq" } ]