-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Optional use of ttfautohint #1
Comments
@backflip i think it should be done with another independent module, you could make one by compiling ttfautohint with Emscripten or wrap it in a node module http://www.freetype.org/ttfautohint/doc/ttfautohint.html#the-ttfautohint-api). You could also just use gulp-spawn https://npmjs.org/package/gulp-spawn to transform TTF contents. Something like that: svg2ttf()
.pipe(spawn({
cmd: 'ttfautohint',
args: [
'/dev/stdin',
'/dev/stdout'
]
})) If you get it working, let me know, i'll add it to gulp-iconfont as an option. |
FYI, a working version of using gulp-spawn and ttfautohint is: g.spawn({
cmd: '/bin/sh',
args: [
'-c',
'cat | ttfautohint /dev/stdin /dev/stdout | cat'
]}) Unfortunately, i had to disable it from my build since my ttfauthint version throws wierd errors...
Let me know if your ttfautohint version works. |
In fact, it seems ttfautohint can't read from stdin and write to stdout... |
Ok, will have to update to 0.9.3: New in 0.93:
http://lists.gnu.org/archive/html/freetype-announce/2012-10/msg00000.html |
Sounds great! |
TTFAutoHint usage is now possible with Gulp iconfont. |
What do you think about using
ttfautohint
if present, similar to https://github.com/sapegin/grunt-webfont/blob/master/tasks/engines/node.js#L125 ? Or do you think this should be done at the level ofsvg2ttf
, if at all?The text was updated successfully, but these errors were encountered: