Add setter for some FontFaceObject properties

This commit is contained in:
Aditi 2025-11-07 01:02:44 +05:30
parent 0a2680bca6
commit 7743d11594
3 changed files with 17 additions and 0 deletions

View File

@ -457,6 +457,10 @@ class FontFaceObject {
return this.#fontData.disableFontFace ?? false; return this.#fontData.disableFontFace ?? false;
} }
set disableFontFace(value) {
shadow(this, "disableFontFace", !!value);
}
get fontExtraProperties() { get fontExtraProperties() {
return this.#fontData.fontExtraProperties ?? false; return this.#fontData.fontExtraProperties ?? false;
} }
@ -501,6 +505,10 @@ class FontFaceObject {
return this.#fontData.bbox; return this.#fontData.bbox;
} }
set bbox(bbox) {
shadow(this, "bbox", bbox);
}
get fontMatrix() { get fontMatrix() {
return this.#fontData.fontMatrix; return this.#fontData.fontMatrix;
} }

View File

@ -0,0 +1 @@
https://github.com/user-attachments/files/23383534/test.1.pdf

View File

@ -1948,6 +1948,14 @@
"type": "eq", "type": "eq",
"forms": true "forms": true
}, },
{
"id": "issue20426",
"file": "pdfs/issue20426.pdf",
"md5": "b9a753df595f1dd30505a67c96373dd8",
"link": true,
"rounds": 1,
"type": "eq"
},
{ {
"id": "issue13845", "id": "issue13845",
"file": "pdfs/issue13845.pdf", "file": "pdfs/issue13845.pdf",