diff --git a/src/core/fonts.js b/src/core/fonts.js index 29f186fa3..6b0eb40c6 100644 --- a/src/core/fonts.js +++ b/src/core/fonts.js @@ -1244,7 +1244,7 @@ class Font { getDingbatsGlyphsUnicode(), this.differences ); - } else if (isStandardFont) { + } else if (isStandardFont || isMappedToStandardFont) { const map = buildToFontChar( this.defaultEncoding, getGlyphsUnicode(), diff --git a/test/pdfs/issue18208.pdf.link b/test/pdfs/issue18208.pdf.link new file mode 100644 index 000000000..e5d008fae --- /dev/null +++ b/test/pdfs/issue18208.pdf.link @@ -0,0 +1 @@ +https://github.com/user-attachments/files/15587595/d403d5d5-f3e1-411d-b289-9b497069b80e.pdf diff --git a/test/test_manifest.json b/test/test_manifest.json index 8845acb99..82e0024cb 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -3012,6 +3012,15 @@ "rounds": 1, "type": "text" }, + { + "id": "issue18208", + "file": "pdfs/issue18208.pdf", + "md5": "d07311117b5cc970159b09977898996b", + "link": true, + "rounds": 1, + "lastPage": 1, + "type": "eq" + }, { "id": "issue11139", "file": "pdfs/issue11139.pdf",