1
0
Fork 0
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:
calixteman 2021-06-28 23:46:09 +02:00 committed by GitHub
commit 04dc902933
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 464 additions and 59 deletions

View file

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