This is a command-line tool that converts <text>
elements inside
- Install Inkscape and make sure it’s in your PATH.
- Download this repo somehow [TODO]
npm i
to install. (Oryarn
if you have it.)
Right now, you change settings.js
:
-
input
— the folder that holds the SVG files to convert. -
output
— the folder to write the converted SVGs into. -
verbose
— the software chats about what it’s doing every step of the way. Beware, Inkscape can be really chatty. -
inkscapePath
— if calling just the commandinkscape
doesn’t work for some reason, put the path to the Inkscape binary here. For example, the default install of certain versions of Inkscape on MacOS may work if you change this to/Applications/Inkscape.app/Contents/Resources/bin/inkscape-bin
. -
replacementClass
— after Inkscape turns your<text>
elements into<path>
s, whatclass
should it add to them?
node ./twice-bake-text.js
A real CLI (command-line interface) would be cool, but only if enough people find this useful.
If the performance is too slow for you, please let me know. My 4GB/1.6GHz MacBook Air chewed through 10,000 SVGs in 4 minutes — but most of that was waiting for Inkscape, so I’m not sure if I can do anything about that.