freetypy.set_lcd_filter¶
-
freetypy.
set_lcd_filter
()¶ Apply color filtering to LCD decimated bitmaps.
Works when called
Glyph.render
withRENDER_MODE.LCD
orRENDER_MODE.LCD_V
.Parameters: filter ( LCD_FILTER
constant) –Notes
This feature is always disabled by default. Clients must make an explicit call to this function with a
filter
value other thanLCD_FILTER.NONE
in order to enable it.Due to PATENTS covering subpixel rendering, this function doesn’t do anything except raising
NotImplementedError
if the configuration macroFT_CONFIG_OPTION_SUBPIXEL_RENDERING
is not defined in your build of the library, which should correspond to all default builds of FreeType.