Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting Fabric.js text to path

I write some text on canvas with Fabric.js lib and with google fonts included. Then I export canvas to SVG through toSvg() function.

When I import *.svg file in the vector editor, e.g. Inkscape, the font become a default - Arial. Checking svg-file structure I do not identify any errors - it has proper font declaration.

So I have a question: how to convert fabric.Text to shape or path, to save it without issue?

like image 680
Алексей Алекс Avatar asked Nov 27 '13 16:11

Алексей Алекс


1 Answers

I think it should be possible with https://github.com/nodebox/opentype.js now.

like image 98
ahwayakchih Avatar answered Sep 23 '22 06:09

ahwayakchih