Closed vjau closed 9 months ago
This code in Text._render function
Text._render
if (!Font.isFont(opts.font || this.defaultFont)) { throw new TypeError("invalid font: " + font); } const font = this._doc._fontInstance(opts.font || this.defaultFont);
has a bug. The throw use font which is defined on the next line
font
Should be fixed, thanks for the report
This code in
Text._render
functionhas a bug. The throw use
font
which is defined on the next line