mifi / editly

Slick, declarative command line video editing & API
MIT License
4.8k stars 312 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 1 year 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 :/