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.
SVG files do not embed fonts directly: some font characters, such as note heads, articulations, and accidentals, are converted into outlines, so that they do not depend on the font from which they are taken.
The SVG format contains a piece of font information and when this font isn't available it replaces the font with another one.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With