gw

gulp-webfont

SVG to webfont converter for gulp

Showing:

Popularity

Downloads/wk

26

GitHub Stars

7

Maintenance

Last Commit

6mos ago

Contributors

4

Package

Dependencies

11

Size (min+gzip)

421.0KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

gulp-webfont

Generate custom icon webfonts from SVG files via Gulp. Copied from and inspired by grunt-webfont.

Only fontforge engine is supported

Installation

This plugin requires Gulp 3.9. Note that ttfautohint is optional, but your generated font will not be properly hinted if it's not installed. And make sure you don't use ttfautohint 0.97 because that version won't work.

OS X

brew install ttfautohint fontforge --with-python
npm install gulp-webfont --save-dev

You may need to use sudo for brew, depending on your setup.

Usage

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

var webfont_config = {
    types:'eot,woff2,woff,ttf,svg',
    ligatures: true
};

gulp.task('default', function () {
  return gulp.src('test/*.svg')
    .pipe(webfont(webfont_config))
    .pipe(gulp.dest('dist'));
});

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100