# gulp-svg2ttf

> Create a TTF font from an SVG font

Latest version **3.0.0** (published 2024-07-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-svg2ttf
pnpm add gulp-svg2ttf
yarn add gulp-svg2ttf
bun add gulp-svg2ttf
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2024-07-30 |
| First published | 2014-01-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.11.1 |
| Dependencies | 4 |
| Unpacked size | 59.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | Nicolas Froidure |
| Maintainers | nfroidure |
| Keywords | gulpplugin, gulp, gulp-plugin, font, svg, ttf, converter |

## Links

- npm: https://www.npmjs.com/package/gulp-svg2ttf
- Repository: https://github.com/nfroidure/gulp-svg2ttf
- Issues: https://github.com/nfroidure/gulp-svg2ttf/issues
- npm.io page: https://npm.io/package/gulp-svg2ttf

## Dependencies (4)

- [svg2ttf](https://npm.io/package/svg2ttf.md) ^6.0.3
- [replace-ext](https://npm.io/package/replace-ext.md) ^2.0.0
- [plugin-error](https://npm.io/package/plugin-error.md) ^2.0.1
- [bufferstreams](https://npm.io/package/bufferstreams.md) ^4.0.0

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

- 3.0.0 (latest) — 2024-07-30
- 2.0.1 — 2017-07-15
- 2.0.0 — 2016-05-06
- 1.1.5 — 2015-11-21
- 1.1.4 — 2015-07-18
- 1.1.3 — 2015-06-26
- 1.1.2 — 2015-06-26
- 1.1.1 — 2015-06-20
- 1.1.0 — 2015-06-20
- 1.0.4 — 2015-06-07
- 1.0.3 — 2015-02-14
- 1.0.2 — 2015-02-10
- 1.0.0 — 2014-11-16
- 0.1.0 — 2014-10-05
- 0.0.9 — 2014-06-28
- … 8 more at https://npm.io/package/gulp-svg2ttf/versions

## README

[//]: # ( )
[//]: # (This file is automatically generated by a `metapak`)
[//]: # (module. Do not change it  except between the)
[//]: # (`content:start/end` flags, your changes would)
[//]: # (be overridden.)
[//]: # ( )
# gulp-svg2ttf
> Create a TTF font from an SVG font

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nfroidure/gulp-svg2ttf/blob/main/LICENSE)


[//]: # (::contents:start)

## Usage

First, install `gulp-svg2ttf` as a development dependency:

```shell
npm install --save-dev gulp-svg2ttf
```

Then, add it to your `gulpfile.js`:

```js
import svg2ttf from 'gulp-svg2ttf';

gulp.task('svg2ttf', () => {
  gulp.src(['fonts/*.svg'])
    .pipe(svg2ttf())
    .pipe(gulp.dest('fonts/'));
});
```

## API

### svg2ttf(options)

#### options.ignoreExt
Type: `Boolean`
Default value: `false`

Set to true to also convert files that doesn't have the .svg extension.

#### options.clone
Type: `Boolean`
Default value: `false`

Set to true to clone the file before converting him so that it will output the
 original file too.

#### options.timestamp
Type: `Number`
Default value: `Math.round(Date.now()/1000)`

Override the TTF font creation/modification date.

#### options.copyright
Type: `String`
Default value: Fontello ad or SVG Font copyright metadata.

Allows to set to your copyright informations.

#### options.version
Type: `String`
Default value: `undefined` (results in version `1.0`)

Allows to set the version number of the font. Needs to be in the format `Version <NUM>.<NUM>` (the `Version` prefix is optional).

### Note

You may look after a full Gulp web font workflow, see
 [gulp-iconfont](https://github.com/nfroidure/gulp-iconfont)
  fot that matter.

### Contributing / Issues

Please submit SVG to TTF related issues to the
 [svg2ttf project](https://github.com/fontello/svg2ttf)
 on wich gulp-svg2ttf is built.

This repository issues is only for gulp and gulp tasks related issues.

You may want to contribute to this project, pull requests are welcome if you
 accept to publish under the MIT licence.


[//]: # (::contents:end)

# Authors
- [Nicolas Froidure](http://insertafter.com/en/index.html)

# License
[MIT](https://github.com/nfroidure/gulp-svg2ttf/blob/main/LICENSE)

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