-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
only create woff #6
Comments
I had the same problem, except I only wanted var fontmin = new Fontmin()
.src(file.contents)
.use(rename({
path: file.path
}))
.use(Fontmin.glyph(opts))
.use(Fontmin.ttf2eot())
.use(Fontmin.ttf2woff())
.use(Fontmin.ttf2svg())
.use(Fontmin.css(opts)); to this: var fontmin = new Fontmin()
.src(file.contents)
.use(rename({
path: file.path
}))
// .use(Fontmin.glyph(opts))
// .use(Fontmin.ttf2eot())
.use(Fontmin.ttf2woff());
// .use(Fontmin.ttf2svg())
// .use(Fontmin.css(opts)); It's on line 92 in version Note that this is only a temporary fix, as it will be undone when you upgrade/reinstall your Hope this helps. |
… of augmenting them, per Issue ecomfe#6.
This pull request totally works. Thanks! To anybody trying to figure out how to use it: gulp.task('subset', function () {
var gulpFontmin = require('gulp-fontmin');
var Fontmin = require('fontmin');
return gulp.src('path/to/font.ttf')
.pipe(gulpFontmin({
use: [Fontmin.glyph({
text: '天地玄黄 宇宙洪荒'
})]
}))
.pipe(gulp.dest('destination/to/subset/fonts/'));
}); |
what would be good about this is it would allow passing |
I don't need the css, svg, eot and ttf files. Can I set it up like that?
The text was updated successfully, but these errors were encountered: