gulp-ttf2eot
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

gulp-ttf2eot

Create an EOT font from a TTF one

GitHub license

Usage

First, install gulp-ttf2eot as a development dependency:

npm install --save-dev gulp-ttf2eot

Then, add it to your gulpfile.js:

import ttf2eot from 'gulp-ttf2eot';

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

API

ttf2eot(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 fot that matter.

Stats

NPM NPM

Contributing / Issues

Please submit TTF to EOT related issues to the ttf2eot project over which gulp-ttf2eot 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 license.

Authors

License

MIT

Package Sidebar

Install

npm i gulp-ttf2eot

Weekly Downloads

21,112

Version

2.0.0

License

MIT

Unpacked Size

36.1 kB

Total Files

14

Last publish

Collaborators

  • nfroidure