Closed nzbart closed 10 years ago
You certaintly try to do strange things with this convertor :) . TTF has integer coords. EM=32 is too small to get good precision after round. It should be 500-4000. Fontello uses 1000.
Thanks for your patience! It may seem like I'm trying some odd things - but all I'm trying to achieve is to generate .woff fonts from some svg images from http://icomoon.io/ using Gulp. Who'd have thought it'd be so hard :)
if you wish to do it with code, look at https://github.com/fontello/svgpath lib. Or you can import images to fontello custom icons (if those have single path
and no transforms), and then cut data from generated svg font.
The solution I used was to call the gulp-iconfont plugin with a fontHeight
of 1000
and normalize
set to true
. This solved the rounding error. Thanks for pointing out the cause of the problem, so that I was able to find this solution.
The solution I used was to call the gulp-iconfont plugin with a
fontHeight
of1000
andnormalize
set totrue
. This solved the rounding error. Thanks for pointing out the cause of the problem, so that I was able to find this solution.
Thanks a lot, good solution!
I have an SVG icon font that displays as a nice circle with a question-mark in the middle when rendered in Chrome. However, when converted to TTF format using svg2ttf, the icon is distorted.
Below is the source SVG font:
I converted this .SVG file to .TTF using the following command line: