# gulp-ttf2woff

> Create a WOFF font from a TTF one

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

## Install

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

## Health

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

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

Warnings: low downloads.

Negative: abandoned.

## Facts

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

## Links

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

## Dependencies (5)

- [ttf2woff](https://npm.io/package/ttf2woff.md) ^3.0.0
- [replace-ext](https://npm.io/package/replace-ext.md) ^2.0.0
- [@types/vinyl](https://npm.io/package/@types/vinyl.md) ^2.0.12
- [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

- 2.0.0 (latest) — 2024-07-30
- 1.1.1 — 2017-07-15
- 1.1.0 — 2015-06-26
- 1.0.2 — 2015-06-07
- 1.0.1 — 2015-02-14
- 1.0.0 — 2014-11-16
- 0.0.8 — 2014-06-28
- 0.0.7 — 2014-06-21
- 0.0.6 — 2014-06-02
- 0.0.5 — 2014-03-29
- 0.0.4 — 2014-01-12
- 0.0.3 — 2014-01-12
- 0.0.2 — 2014-01-09
- 0.0.1 — 2014-01-04

## 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-ttf2woff
> Create a WOFF font from a TTF one

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


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

## Usage

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

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

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

```javascript
import ttf2woff from 'gulp-ttf2woff';

gulp.task('ttf2woff', () => {
  gulp.src(['fonts/*.ttf'], {
      encoding: false, // Important!
      removeBOM: false,
    })
    .pipe(ttf2woff())
    .pipe(gulp.dest('fonts/'));
});
```

## API

### ttf2woff(options)

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

Set to true to also convert files that doesn't have the .ttf 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.

### Note

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

## Stats

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

### Contributing / Issues

Please submit TTF to WOFF related issues to the
 [ttf2woff project](https://github.com/fontello/ttf2woff)
 on wich gulp-ttf2woff 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-ttf2woff/blob/main/LICENSE)

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