mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-28 23:28:16 +02:00
Merge pull request #13644 from calixteman/xfa_missing_fonts
XFA - Support non-embedded fonts without a Widths entry
This commit is contained in:
commit
04dc902933
11 changed files with 464 additions and 59 deletions
|
@ -2665,6 +2665,11 @@ class Font extends XFAObject {
|
|||
this.fill = null;
|
||||
}
|
||||
|
||||
[$clean](builder) {
|
||||
super[$clean](builder);
|
||||
this[$globalData].usedTypefaces.add(this.typeface);
|
||||
}
|
||||
|
||||
[$toStyle]() {
|
||||
const style = toStyle(this, "fill");
|
||||
const color = style.color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue