https://github.com/qdsang/ttf2svg
Font convertor, TTF to SVG, for node.js
https://github.com/qdsang/ttf2svg
font-convertor svg ttf
Last synced: about 1 year ago
JSON representation
Font convertor, TTF to SVG, for node.js
- Host: GitHub
- URL: https://github.com/qdsang/ttf2svg
- Owner: qdsang
- License: mit
- Created: 2014-07-29T03:09:29.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2022-05-24T14:27:02.000Z (about 4 years ago)
- Last Synced: 2025-04-30T13:50:07.884Z (about 1 year ago)
- Topics: font-convertor, svg, ttf
- Language: JavaScript
- Size: 36.1 KB
- Stars: 94
- Watchers: 6
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ttf2svg
=======
Font convertor, TTF to SVG, for node.js
Usage
-----
Install:
``` bash
npm install -g ttf2svg
```
Usage example:
``` bash
ttf2svg fontello.ttf fontello.svg
```
Or:
``` javascript
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
-----
[](https://nodei.co/npm/ttf2svg/)
[](https://nodei.co/npm/ttf2svg/)
Reference
-----
[gulp-ttf2svg](https://github.com/morlay/gulp-ttf2svg/)