Subpixel rendering in Fedora 22
I've spent last week trying to get subpixel rendering working with fedora's freetype package, and even though it had the patch...
--- freetype-2.5.2/include/config/ftoption.h 2013-12-08 19:40:19.000000000 +0100 +++ freetype-2.5.2-enable-spr/include/config/ftoption.h 2014-01-17 19:17:34.000000000 +0100 @@ -92,7 +92,7 @@ /* This is done to allow FreeType clients to run unmodified, forcing */ /* them to display normal gray-level anti-aliased glyphs. */ /* */ - /* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */ + #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING /*************************************************************************/
... the fonts still looked horribly (e.g. this web page)
Today I actually read the spec file, and it started with...
# Patented subpixel rendering disabled by default. # Pass '--with subpixel_rendering' on rpmbuild command-line to enable. %{!?_with_subpixel_rendering: %{!?_without_subpixel_rendering: %define _without_subpixel_rendering --without-subpixel_rendering}}
insert a minute of swearing
Everybody seem to be all hyped about infinality patches, and they do make the fonts look great, but these were already merged.
rpmbuild -bb freetype.spec --with subpixel_rendering
Even Cantarell font looks almost decent now.
ARGH.