Convert SVG fonts to Truetype, WOFF or EOT formats.
(Basically just a thin wrapper around the brilliant svg2tff, ttf2woff and ttf2eot Fontello libraries.)
font-builder <file> [options]
-f, --formats [string]
- A comma separated list of formats to convert the source file too. Supported formats:ttf
,woff
andeot
. Default is to export all supported formats.-d, --dest [string]
- Destination path of the converted files. Default destination is the directory of the source file.
font-builder ./my-font.svg -f ttf,woff -o ./dist
var builder = require("dr-font-builder");
builder("my-font.svg", ["ttf", "woff"]);