Merge pull request #20427 from Aditi-1400/issue-20426
Add setter for some FontFaceObject properties
This commit is contained in:
commit
ddf3a989ca
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
1
test/pdfs/issue20426.pdf.link
Normal file
1
test/pdfs/issue20426.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
https://github.com/user-attachments/files/23383534/test.1.pdf
|
||||||
@ -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",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user