FontCustom / fontcustom

Generate custom icon webfonts from the comfort of the command line.
3.29k stars 423 forks source link

Feature request: hinting for specific sizes #4

Open ojt opened 11 years ago

ojt commented 11 years ago

Hello, first of all: very nice work! Will definitely be using fontcustom, though I did already get Glyphs Mini.

And as you may have guessed from the title of this issue, a possibility to hint for specific sizes would be a very powerful feature. I imagine that would make fontcustom the only tool out there to achieve it, if we don't count expensive (and hard to use?) professional font editors such as fontlab.

So, for the majority of web designers / developers out there, the possibility to provide size specific artwork for the glyphs would make fontcustom a must-have, if it isn't already.

This was also requested on the HN thread yesterday: http://news.ycombinator.com/item?id=4832906

endtwist commented 11 years ago

The fonts are currently autohinted using ttfautohint: http://www.freetype.org/ttfautohint/doc/ttfautohint.html#ttfautohint-and-ttfautohintgui

So, most resulting font icons should be adequately sharp at sizes between 8 and 200px. I will have to look into it more, but I'm not sure if there's any way to be more specific about the hinting.

ojt commented 11 years ago

Yes, this is not really an issue. I shall test comprehensively with my 80 (ish) icons set, which will have to work from 16px to 64px at least. A lot of the optimizing is of course about stroke width anyways.

lominming commented 11 years ago

This feature would be great. The ability to create sharp icons will be important. I will test out other sizes to see whether I can get it to work sharper. Great work so far!