diff options
Diffstat (limited to 'include/freetype/internal/ftobjs.h')
-rw-r--r-- | include/freetype/internal/ftobjs.h | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/include/freetype/internal/ftobjs.h b/include/freetype/internal/ftobjs.h index 1c3c6ad45..9ac05e94f 100644 --- a/include/freetype/internal/ftobjs.h +++ b/include/freetype/internal/ftobjs.h @@ -312,11 +312,11 @@ FT_BEGIN_HEADER FT_CMap_Done( FT_CMap cmap ); - /* adds LCD padding to Min and Max boundaries */ + /* add LCD padding to CBox */ FT_BASE( void ) - ft_lcd_padding( FT_Pos* Min, - FT_Pos* Max, - FT_GlyphSlot slot ); + ft_lcd_padding( FT_BBox* cbox, + FT_GlyphSlot slot, + FT_Render_Mode mode ); #ifdef FT_CONFIG_OPTION_SUBPIXEL_RENDERING @@ -392,8 +392,8 @@ FT_BEGIN_HEADER /* */ /* lcd_weights :: */ /* lcd_filter_func :: */ - /* If subpixel rendering is activated, the LCD filtering weights */ - /* and callback function. */ + /* These fields specify the LCD filtering weights and callback */ + /* function for ClearType-style subpixel rendering. */ /* */ /* refcount :: */ /* A counter initialized to~1 at the time an @FT_Face structure is */ @@ -897,11 +897,15 @@ FT_BEGIN_HEADER /* interpreter. Currently, only the TrueType */ /* bytecode debugger uses this. */ /* */ - /* lcd_weights :: If subpixel rendering is activated, the LCD */ - /* filter weights, if any. */ + /* lcd_weights :: The LCD filter weights for ClearType-style */ + /* subpixel rendering. */ /* */ - /* lcd_filter_func :: If subpixel rendering is activated, the LCD */ - /* filtering callback function. */ + /* lcd_filter_func :: The LCD filtering callback function for */ + /* for ClearType-style subpixel rendering. */ + /* */ + /* lcd_geometry :: This array specifies LCD subpixel geometry */ + /* and controls Harmony LCD rendering technique, */ + /* alternative to ClearType. */ /* */ /* pic_container :: Contains global structs and tables, instead */ /* of defining them globally. */ @@ -933,6 +937,8 @@ FT_BEGIN_HEADER #ifdef FT_CONFIG_OPTION_SUBPIXEL_RENDERING FT_LcdFiveTapFilter lcd_weights; /* filter weights, if any */ FT_Bitmap_LcdFilterFunc lcd_filter_func; /* filtering callback */ +#else + FT_Vector lcd_geometry[3]; /* RGB subpixel positions */ #endif #ifdef FT_CONFIG_OPTION_PIC |