Reputation: 7213
I'm searching for a script to convert multiple SVG images (each containing one letter) to a SVG font file.
Basically the same this website does: http://keyamoon.com/icomoon/app/
But I would prefer a script (preferable Linux), so we can integrate it in our build process.
Any ideas? Or code I can start with?
Input should be a list of SVG images + a mapping file and the output should be one file containing all the SVG images as SVG font.
Upvotes: 14
Views: 8201
Reputation: 5119
FYI, two guys just released a project to do this very thing:
https://github.com/FontCustom/fontcustom
Upvotes: 13
Reputation: 7413
I wrote a command line application that creates a SVG font from a set of SVG files and vice versa: https://github.com/madeyourday/SVG-Icon-Font-Generator
It's written in PHP and is currently in beta.
But it's using no mapping file, the mapping is based on the file names.
Upvotes: 4
Reputation: 3247
The Apache Batik project has a SVG Font converter which may be an option for you.
From their font converter example:
java -jar batik-ttf2svg.jar /usr/home/myFont.ttf -l 48 -h 57 -id MySVGFont -o mySVGFont.svg -testcard
Upvotes: 1