Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

despegar/gulp-webfont

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'));
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.9%
  • Python 13.1%