Discussion:
[Dvipng] FreeType render modes
Tobias Wolf
2008-10-28 18:36:57 UTC
Permalink
Salve,
I’ve seen some results from other renderers which show that some of
Freetypes modes can improve legibility of LaTeX.

I've determined that HINT_MODE_AUTOHINT_LIGHT and FT_LCD_FILTER_DEFAULT
are a good combination. Light autohinting because it does not affect
horizontal advances, only horizontal lines like =, -, _, or T, E.
LCD mode gives better Latin Modern and other Type1 fonts.

Have you considered offering these modes? There is a small tool that can
use all the modes here:
http://cvs.savannah.gnu.org/viewvc/ft2demos/src/ftdiff.c?revision=1.12&root=freetype&view=markup

Of course the images need to be RGB. 16 gray levels don’t work
obviously.

Regards,
Tobias
Jan-Åke Larsson
2008-10-28 19:43:12 UTC
Permalink
Post by Tobias Wolf
I've determined that HINT_MODE_AUTOHINT_LIGHT and FT_LCD_FILTER_DEFAULT
are a good combination. Light autohinting because it does not affect
horizontal advances, only horizontal lines like =, -, _, or T, E.
LCD mode gives better Latin Modern and other Type1 fonts.
Have you considered offering these modes? There is a small tool that can
http://cvs.savannah.gnu.org/viewvc/ft2demos/src/ftdiff.c?revision=1.12&root=freetype&view=markup
No, thanks for the heads-up. dvipng has been around for so long that
these were nonexistent. I'll have a look.

/JÅ
Jan-Åke Larsson
2008-11-16 16:12:51 UTC
Permalink
Post by Jan-Åke Larsson
Post by Tobias Wolf
I've determined that HINT_MODE_AUTOHINT_LIGHT and FT_LCD_FILTER_DEFAULT
are a good combination. Light autohinting because it does not affect
horizontal advances, only horizontal lines like =, -, _, or T, E.
LCD mode gives better Latin Modern and other Type1 fonts.
Have you considered offering these modes? There is a small tool that can
http://cvs.savannah.gnu.org/viewvc/ft2demos/src/ftdiff.c?revision=1.12&root=freetype&view=markup
No, thanks for the heads-up. dvipng has been around for so long that
these were nonexistent. I'll have a look.
Checking the code, it seems that the light hinter is already used in
dvipng (with a differently named compile-time const), while the default
lcd filter is not used. Since dvipng is not a display renderer and
cannot know beforehand if rendering is done for an LCD display or not, I
doubt that this is really an option.

/JÅ

Loading...