Open Kalo0m opened 1 year ago
npm i -g editly
npm i editly@latest
How can we use a custom font when using fabrics' Text?
I'm trying to achieve the same things. I tried:
fabric.nodeCanvas.registerFont(pathToFont, { family: 'fontName', weight: 'bold', style: 'normal' });
But don't works :/
npm i -g editly
ornpm i editly@latest
How can we use a custom font when using fabrics' Text?