gulp-fontgen

Generator of browser fonts and css from ttf or otf files

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gulp-fontgen
2480.2.57 years ago9 years agoMinified + gzip package size for gulp-fontgen in KB

Readme

gulp-fontgen
!NPM versionnpm-imagenpm-url !Build Statustravis-imagetravis-url !Coverage Statuscoveralls-imagecoveralls-url !Dependency Statusdepstat-imagedepstat-url
gulp-fontgen plugin for gulp

Usage

First, install gulp-fontgen as a development dependency:
npm install --save-dev gulp-fontgen

Then, add it to your gulpfile.js:
var gulp = require('gulp');
var fontgen = require('../gulp-fontgen');

gulp.task('fontgen', function() {
  return gulp.src("./src/*.{ttf,otf}")
    .pipe(fontgen({
      dest: "./dest/"
    }));
});

gulp.task('default', ['fontgen']);

API

gulpFontgen(options)

options.dest

Type: String (Required)
Destination to write all the font files to
All other options for fontfacegen are passed through.

License

MIT License