The Wayback Machine - https://web.archive.org/web/20210506200933/https://github.com/qdsang/ttf2svg
Skip to content
master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
Jul 5, 2017
src
Jan 7, 2017
Jul 29, 2014
Jan 7, 2017
Jul 5, 2017

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

About

Font convertor, TTF to SVG, for node.js

Topics

Resources

License

Releases

No releases published

Packages

No packages published