gulp-ttf2eot
Create a EOT font from a TTF font with Gulp.
Usage
First, install gulp-ttf2eot
as a development dependency:
npm install --save-dev gulp-ttf2eot
Then, add it to your gulpfile.js
:
var ttf2eot = require('gulp-ttf2eot');
gulp.task('ttf2eot', function(){
gulp.src(['fonts/*.ttf'])
.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.
Contributing / Issues
Please submit TTF to EOT related issues to the
ttf2eot project
on wich 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 licence.