diff --git a/src/display/font_loader.js b/src/display/font_loader.js index 9e6fa1e34..7d8f01a9f 100644 --- a/src/display/font_loader.js +++ b/src/display/font_loader.js @@ -457,6 +457,10 @@ class FontFaceObject { return this.#fontData.disableFontFace ?? false; } + set disableFontFace(value) { + shadow(this, "disableFontFace", !!value); + } + get fontExtraProperties() { return this.#fontData.fontExtraProperties ?? false; } @@ -501,6 +505,10 @@ class FontFaceObject { return this.#fontData.bbox; } + set bbox(bbox) { + shadow(this, "bbox", bbox); + } + get fontMatrix() { return this.#fontData.fontMatrix; } diff --git a/test/pdfs/issue20426.pdf.link b/test/pdfs/issue20426.pdf.link new file mode 100644 index 000000000..6db965138 --- /dev/null +++ b/test/pdfs/issue20426.pdf.link @@ -0,0 +1 @@ +https://github.com/user-attachments/files/23383534/test.1.pdf diff --git a/test/test_manifest.json b/test/test_manifest.json index f864c2be9..da5707fd0 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -1948,6 +1948,14 @@ "type": "eq", "forms": true }, + { + "id": "issue20426", + "file": "pdfs/issue20426.pdf", + "md5": "b9a753df595f1dd30505a67c96373dd8", + "link": true, + "rounds": 1, + "type": "eq" + }, { "id": "issue13845", "file": "pdfs/issue13845.pdf",