mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #15885 from Snuffleupagus/font-update-type-subtype
Update the `type`/`subtype` at the end of font parsing
This commit is contained in:
commit
da1365a309
1 changed files with 3 additions and 2 deletions
|
@ -945,8 +945,7 @@ class Font {
|
|||
this.isSymbolicFont = !!(properties.flags & FontFlags.Symbolic);
|
||||
this.isMonospace = !!(properties.flags & FontFlags.FixedPitch);
|
||||
|
||||
let type = properties.type;
|
||||
let subtype = properties.subtype;
|
||||
let { type, subtype } = properties;
|
||||
this.type = type;
|
||||
this.subtype = subtype;
|
||||
|
||||
|
@ -1064,6 +1063,8 @@ class Font {
|
|||
this.data = data;
|
||||
|
||||
// Transfer some properties again that could change during font conversion
|
||||
this.type = type;
|
||||
this.subtype = subtype;
|
||||
this.fontMatrix = properties.fontMatrix;
|
||||
this.widths = properties.widths;
|
||||
this.defaultWidth = properties.defaultWidth;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue