* src/base/ftlcdfil.c: added support for FT_FORCE_LIGHT_LCD_FILTER

and FT_FORCE_LEGACY_LCD_FILTER at compile time. Define these macros
      when building the library to change the default LCD filter to be
      used. This is only useful for experimentation
This commit is contained in:
David Turner 2006-11-13 13:03:48 +00:00
parent 7bab6ae3e9
commit 29c191cd53
2 changed files with 11 additions and 1 deletions

View File

@ -4,6 +4,11 @@
since the interpreter "enhancements" are still too buggy for
general use
* src/base/ftlcdfil.c: added support for FT_FORCE_LIGHT_LCD_FILTER
and FT_FORCE_LEGACY_LCD_FILTER at compile time. Define these macros
when building the library to change the default LCD filter to be
used. This is only useful for experimentation
2006-11-10 David Turner <david@freetype.org>
* include/freetype/ftlcdfil.h, include/internal/ftobjs.h,

View File

@ -24,6 +24,7 @@
#ifdef FT_CONFIG_OPTION_SUBPIXEL_RENDERING
/* define USE_LEGACY to implement the legacy filter */
#define USE_LEGACY
/* FIR filter used by the default and light filters */
@ -274,9 +275,13 @@
break;
case FT_LCD_FILTER_DEFAULT:
#if 0 /* DEBUGGING */
#if defined(FT_FORCE_LEGACY_LCD_FILTER)
library->lcd_filter_func = _ft_lcd_filter_legacy;
library->lcd_extra = 0;
#elif defined(FT_FORCE_LIGHT_LCD_FILTER)
memcpy( library->lcd_weights, default_filter, 5 );
library->lcd_filter_func = _ft_lcd_filter_fir;
library->lcd_extra = 2;
#else
memcpy( library->lcd_weights, default_filter, 5 );
library->lcd_filter_func = _ft_lcd_filter_fir;