#7797: [app_server] Alternative implementation of subpixel rendering (patch) ----------------------------------+---------------------------- Reporter: diver | Owner: leavengood Type: bug | Status: in-progress Priority: normal | Milestone: R1 Component: Servers/app_server | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ----------------------------------+---------------------------- Comment (by diver): For anyone interested, the following two patches enable subpixel rendering: {{{ diff -urN freetype-2.4.9/include/freetype/config/ftoption.h freetype-2.4.9 -enable-subpixel-rendering/include/freetype/config/ftoption.h --- freetype-2.4.9/include/freetype/config/ftoption.h 2011-07-20 04:46:15.035913728 +0000 +++ freetype-2.4.9-enable-subpixel- rendering/include/freetype/config/ftoption.h 2012-09-05 16:30:50.453509120 +0000 @@ -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 /*************************************************************************/ }}} {{{ diff --git a/src/servers/app/font/FontEngine.cpp b/src/servers/app/font/FontEngine.cpp index bb02895..977a332 100644 --- a/src/servers/app/font/FontEngine.cpp +++ b/src/servers/app/font/FontEngine.cpp @@ -588,6 +588,8 @@ FontEngine::FontEngine() fLastError = FT_Init_FreeType(&fLibrary); if (fLastError == 0) fLibraryInitialized = true; + + FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT); } }}} -- Ticket URL: <http://dev.haiku-os.org/ticket/7797#comment:15> Haiku <http://dev.haiku-os.org> Haiku - the operating system.