Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Create a WOFF font from a TTF font with Gulp
JavaScript
Branch: master

1.1.0

latest commit 475e019937
@nfroidure authored
Failed to load latest commit information.
src Cleaning up the repo
tests Cleaning up the repo
.gitignore Cleaning up the repo
.npmignore First working commit
.travis.yml First working commit
LICENCE First working commit
README.md Cleaning up the repo
package.json 1.1.0

README.md

gulp-ttf2woff

Create a WOFF font from a TTF one with Gulp.

NPM version Build status Dependency Status devDependency Status Coverage Status Code Climate

Usage

First, install gulp-ttf2woff as a development dependency:

npm install --save-dev gulp-ttf2woff

Then, add it to your gulpfile.js:

var ttf2woff = require('gulp-ttf2woff');

gulp.task('ttf2woff', function(){
  gulp.src(['fonts/*.ttf'])
    .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 fot that matter.

Stats

NPM NPM

Contributing / Issues

Please submit TTF to WOFF related issues to the ttf2woff project 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.

Something went wrong with that request. Please try again.