mifi / editly

Slick, declarative command line video editing & API
MIT License
4.64k stars 295 forks source link

Custom font within a fabric layer #233

Open Kalo0m opened 1 year ago

Kalo0m commented 1 year ago

How can we use a custom font when using fabrics' Text?

BowgartField commented 7 months ago

I'm trying to achieve the same things. I tried:

fabric.nodeCanvas.registerFont(pathToFont, {
            family: 'fontName', weight: 'bold', style: 'normal'
});

But don't works :/