Converts SVG font to TTF font
Converts SVG fonts to TTF format. It was initially written for Fontello, but you can find it useful for your projects.
Internal API is similar to FontForge's one. Since primary goal is generating iconic fonts, sources can lack some spesific TTF/OTF features, like kerning and so on. Anyway, current code is a good base for development, because it will save you tons of hours to implement correct writing & optimizing TTF tables.
npm install -g svg2ttf
svg2ttf fontello.svg fontello.ttf
svgFontString- SVG font content
copyright- copyright string (optional)
ts- Unix timestamp (in seconds) to override creation time (optional)
version- font version string, can be
buf- internal byte buffer object, similar to DataView. It's
Arraywith ttf content.
var fs = ;var svg2ttf = ;var ttf = ;fs;