Ticket #7797: subpix_aa.diff
File subpix_aa.diff, 2.5 KB (added by , 13 years ago) |
---|
-
src/servers/app/FontCacheEntry.cpp
401 401 if (font.Rotation() != 0.0 || font.Shear() != 90.0 402 402 || font.FalseBoldWidth() != 0.0 403 403 || (font.Flags() & B_DISABLE_ANTIALIASING) != 0 404 || font.Size() > 30 405 || !font.Hinting()) { 404 || font.Size() > 30) { 406 405 renderingType = glyph_ren_outline; 407 406 } 408 407 -
src/servers/app/FontEngine.cpp
366 366 decompose_ft_bitmap_subpix(const FT_Bitmap& bitmap, int x, int y, 367 367 bool flip_y, Scanline& sl, ScanlineStorage& storage) 368 368 { 369 #if def AVERAGE_BASED_SUBPIXEL_FILTERING369 #if 1 370 370 const uint8* buf = (const uint8*)bitmap.buffer; 371 371 int pitch = bitmap.pitch; 372 372 sl.reset(x, x + bitmap.width / 3); … … 588 588 fLastError = FT_Init_FreeType(&fLibrary); 589 589 if (fLastError == 0) 590 590 fLibraryInitialized = true; 591 592 FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT); 591 593 } 592 594 593 595 -
src/servers/app/drawing/Painter/GlobalSubpixelSettings.h
17 17 HINTING_MODE_MONOSPACED_ONLY 18 18 }; 19 19 20 #define AVERAGE_BASED_SUBPIXEL_FILTERING20 //#define AVERAGE_BASED_SUBPIXEL_FILTERING 21 21 22 22 extern bool gSubpixelAntialiasing; 23 23 extern uint8 gDefaultHintingMode; -
headers/libs/freetype2/freetype/config/ftoption.h
93 93 /* This is done to allow FreeType clients to run unmodified, forcing */ 94 94 /* them to display normal gray-level anti-aliased glyphs. */ 95 95 /* */ 96 #if HAIKU_INCLUDE_PATENTED_CODE 97 # define FT_CONFIG_OPTION_SUBPIXEL_RENDERING 98 #endif 96 #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING 99 97 100 98 /*************************************************************************/ 101 99 /* */