Is there a way to prevent node canvas from using an installed font and instead use a .ttf font with the same name, but from a file?
Using canvas.registerFont registers the font, but when applying it to the canvas it tries to use the Uni Sans font installed on my PC instead (at least that's what I suspect, since it broke right after I installed it)
canvas.registerFont('/Assets/Fonts/uni_sans_heavy.ttf', {family: 'Uni Sans'})
let cnvs = canvas.createCanvas(500, 150)
let ctx = cnvs.getContext('2d')
ctx.font = 'bold 50px Uni Sans'
ctx.fillText(`This is a test!`, 25, 50)
message.channel.send({files: [{ attachment: cnvs.toBuffer() }]})