mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-28 23:28:16 +02:00
XFA - Support non-embedded fonts without a Widths entry
- some pdf use some fonts which are not embedded or they don't have any width array or don't have any css info (e.g. for standard fonts or Arial). - so add widths arrays for Liberation fonts in order to compute the ones for other fonts in using scale factors array.
This commit is contained in:
parent
ff3a5382ee
commit
70bb672dcd
11 changed files with 464 additions and 59 deletions
|
@ -34,7 +34,9 @@ class XFAParser extends XMLParserBase {
|
|||
super();
|
||||
this._builder = new Builder();
|
||||
this._stack = [];
|
||||
this._globalData = Object.create(null);
|
||||
this._globalData = {
|
||||
usedTypefaces: new Set(),
|
||||
};
|
||||
this._ids = new Map();
|
||||
this._current = this._builder.buildRoot(this._ids);
|
||||
this._errorCode = XMLParserErrorCode.NoError;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue