1 | # gulp-svg2ttf [![NPM version](https://badge.fury.io/js/gulp-svg2ttf.png)](https://npmjs.org/package/gulp-svg2ttf) [![Build status](https://secure.travis-ci.org/nfroidure/gulp-svg2ttf.png)](https://travis-ci.org/nfroidure/gulp-svg2ttf)
|
2 | > Create a TTF font from an SVG font with [Gulp](http://gulpjs.com/).
|
3 |
|
4 | ## Usage
|
5 |
|
6 | First, install `gulp-svg2ttf` as a development dependency:
|
7 |
|
8 | ```shell
|
9 | npm install --save-dev gulp-svg2ttf
|
10 | ```
|
11 |
|
12 | Then, add it to your `gulpfile.js`:
|
13 |
|
14 | ```javascript
|
15 | var svg2ttf = require('gulp-svg2ttf');
|
16 |
|
17 | gulp.task('svg2ttf', function(){
|
18 | gulp.src(['fonts/*.svg'])
|
19 | .pipe(svg2ttf())
|
20 | .pipe(gulp.dest('fonts/'));
|
21 | });
|
22 | ```
|
23 |
|
24 | ## API
|
25 |
|
26 | ### svg2ttf(options)
|
27 |
|
28 | #### options.ignoreExt
|
29 | Type: `Boolean`
|
30 | Default value: `false`
|
31 |
|
32 | Set to true to also convert files that doesn't have the .svg extension.
|
33 |
|
34 | ### Contributing / Issues
|
35 |
|
36 | Please submit SVG to TTF related issues to the
|
37 | [svg2ttf project](https://github.com/fontello/svg2ttf)
|
38 | on wich gulp-svg2ttf is built.
|
39 |
|
40 | This repository issues is only for gulp and gulp tasks related issues.
|
41 |
|
42 | You may want to contribute to this project, pull requests are welcome if you
|
43 | accept to publish under the MIT licence.
|