-
Notifications
You must be signed in to change notification settings - Fork 323
能否增加对woff2的支持 #30
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
Comments
@ghostgeek 是的 有这个考虑 var Fontmin = require('fontmin');
var ttf2woff2 = require('gulp-ttf2woff2');
var fontmin = new Fontmin()
.src('fonts/*.ttf')
.use(Fontmin.glyph({
text: '对woff2的支持'
}))
.use(ttf2woff2({clone: true}))
.dest('build/fonts');
fontmin.run(function (err, files) {
if (err) {
throw err;
}
console.log(files[0]);
// => { contents: <Buffer 00 01 00 ...> }
}); |
嗯 |
based on plugin ttf2woff.js
|
Hello, Do you plan to embed ttf2woff2 in fontmin in a future release ? Thanks for the workaround using gulp-ttf2woff2 as a plugin 👍 |
I preferred to write own implementation of svgs2ttf using fontforge basic scripting to produce svg font and ttf2* modules because svg font rendering issues does not fixed in such projects for years. Own implementation is smaller and more tunable. I understand people that prefer to use native project api instead of such wrappers now. |
As fonteditor-core is the basis of all the other fontmin plugins, I submitted a request for ttf2woff2 support there: kekee000/fonteditor-core#3. |
不知道作者是否接受 PR? |
还在维护么 |
WOFF File Format 2.0 已经发布了一段时间,是否在项目里面考虑增加对这一标准的支持
The text was updated successfully, but these errors were encountered: