# ttf2svg

> Font convertor, TTF to SVG, for node.js

Latest version **1.2.0** (published 2017-07-05) · 0 weekly downloads

## Install

```sh
npm install ttf2svg
pnpm add ttf2svg
yarn add ttf2svg
bun add ttf2svg
```

Provides the command `ttf2svg`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2017-07-05 |
| First published | 2014-07-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 94 |
| Author | qdsang |
| Maintainers | qdsang |
| Keywords | SVG, font, fonts, ttf, ttf2svg, webfont |

## Links

- npm: https://www.npmjs.com/package/ttf2svg
- Repository: https://github.com/qdsang/ttf2svg
- Issues: https://github.com/qdsang/ttf2svg/issues
- npm.io page: https://npm.io/package/ttf2svg

## Dependencies (1)

- [font-carrier](https://npm.io/package/font-carrier.md) 0.0.12

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads
- [@react-md/material-icons](https://npm.io/package/@react-md/material-icons.md) — 1.6K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2017-07-05
- 1.1.0 — 2017-01-07
- 0.0.7 — 2014-08-19
- 0.0.6 — 2014-08-19
- 0.0.5 — 2014-08-19
- 0.0.4 — 2014-08-19
- 0.0.3 — 2014-08-16
- 0.0.2 — 2014-07-29
- 0.0.1 — 2014-07-29

## 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
-----

[![NPM](https://nodei.co/npm/ttf2svg.png?downloads=true&stars=true)](https://nodei.co/npm/ttf2svg/)
[![NPM](https://nodei.co/npm-dl/ttf2svg.png)](https://nodei.co/npm/ttf2svg/)



Reference
-----

[gulp-ttf2svg](https://github.com/morlay/gulp-ttf2svg/)

---
_Source: https://npm.io/package/ttf2svg · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
