Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Script to convert multiple SVG images to a SVG font file

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.

like image 844
JochenJung Avatar asked Apr 27 '12 10:04

JochenJung


People also ask

Do SVG files embed fonts?

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.

Why does SVG font change?

The SVG format contains a piece of font information and when this font isn't available it replaces the font with another one.


1 Answers

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.

like image 84
ausi Avatar answered Sep 21 '22 17:09

ausi