freetypy.set_lcd_filter

freetypy.set_lcd_filter()

Apply color filtering to LCD decimated bitmaps.

Works when called Glyph.render with RENDER_MODE.LCD or RENDER_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 than LCD_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 macro FT_CONFIG_OPTION_SUBPIXEL_RENDERING is not defined in your build of the library, which should correspond to all default builds of FreeType.