Skip to content

Commit ddf3a98

Browse files
authored
Merge pull request #20427 from Aditi-1400/issue-20426
Add setter for some FontFaceObject properties
2 parents 8f0c629 + 7743d11 commit ddf3a98

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

src/display/font_loader.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,10 @@ class FontFaceObject {
457457
return this.#fontData.disableFontFace ?? false;
458458
}
459459

460+
set disableFontFace(value) {
461+
shadow(this, "disableFontFace", !!value);
462+
}
463+
460464
get fontExtraProperties() {
461465
return this.#fontData.fontExtraProperties ?? false;
462466
}
@@ -501,6 +505,10 @@ class FontFaceObject {
501505
return this.#fontData.bbox;
502506
}
503507

508+
set bbox(bbox) {
509+
shadow(this, "bbox", bbox);
510+
}
511+
504512
get fontMatrix() {
505513
return this.#fontData.fontMatrix;
506514
}

test/pdfs/issue20426.pdf.link

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://github.com/user-attachments/files/23383534/test.1.pdf

test/test_manifest.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,6 +1948,14 @@
19481948
"type": "eq",
19491949
"forms": true
19501950
},
1951+
{
1952+
"id": "issue20426",
1953+
"file": "pdfs/issue20426.pdf",
1954+
"md5": "b9a753df595f1dd30505a67c96373dd8",
1955+
"link": true,
1956+
"rounds": 1,
1957+
"type": "eq"
1958+
},
19511959
{
19521960
"id": "issue13845",
19531961
"file": "pdfs/issue13845.pdf",

0 commit comments

Comments
 (0)