TypeError: Font is not a constructor?

let Font = canvas.Font;
let CoreSansE = new Font('CoreSansE-25ExtraLight', __dirname + '/base/fonts/CoreSansE-25ExtraLight.otf');

Catch error - TypeError: Font is not a constructor
March 19th 20 at 09:21
1 answer
March 19th 20 at 09:23
There are a lot of people says that this is not a constructor. Generally, if it is the canvas, the font changes as ctx.font, logs into this: https://github.com/Automattic/node-canvas/#registerfont

Find more questions by tags Node.js