def set_lcd_filter_weights(a, b, c, d, e):
 if (version() >= (2, 4, 0)):
  library = get_handle()
  weights = FT_Char(5)(a, b, c, d, e)
  error = FT_Library_SetLcdFilterWeights(library, weights)
  if error:
   raise FT_Exception(error)
 else:
  raise RuntimeError, 'set_lcd_filter_weights require freetype > 2.4.0'

def set_lcd_filter_weights ( a , b , c , d , e ) : if ( version ( ) >= ( 2 , 4 , 0 ) ) : library = get_handle ( ) weights = FT_Char ( 5 ) ( a , b , c , d , e ) error = FT_Library_SetLcdFilterWeights ( library , weights ) if error : raise FT_Exception ( error ) else : raise RuntimeError , 'set_lcd_filter_weights require freetype > 2.4.0'
use this function to override the filter weights selected by ft_library_setlcdfilter .