Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ttf2svg

qdsang1.1k1.2.0

Font convertor, TTF to SVG, for node.js

SVG, font, fonts, ttf, ttf2svg, webfont

readme

ttf2svg

Font convertor, TTF to SVG, for node.js

Usage

Install:

npm install -g ttf2svg

Usage example:

ttf2svg fontello.ttf fontello.svg

Or:

var ttf2svg = require('ttf2svg')
  , fs = require('fs')
;

fs.readFile('./fontello.ttf', function (err, buffer) {
    if (!!err) throw err;

    var svgContent = ttf2svg(buffer);
    fs.writeFileSync('./fontello.svg', svgContent);

});

Stats

NPM NPM

Reference

gulp-ttf2svg