Merge pull request #20427 from Aditi-1400/issue-20426

Add setter for some FontFaceObject properties
This commit is contained in:
calixteman 2025-11-20 20:49:30 +01:00 committed by GitHub
commit ddf3a989ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 0 deletions

View File

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

View File

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

View File

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