def font_to_str ( font ):
    weight = { wx.LIGHT:  ' Light',
               wx.BOLD:   ' Bold'   }.get( font.GetWeight(), '' )
    style  = { wx.SLANT:  ' Slant',
               wx.ITALIC: ' Italic' }.get( font.GetStyle(), '' )
    underline = ''
    if font.GetUnderlined():
        underline = ' underline'
    return '%s point %s%s%s%s' % (
           font.GetPointSize(), font.GetFaceName(), style, weight, underline )

#-------------------------------------------------------------------------------
#  Create a TraitFont object from a string description:
#-------------------------------------------------------------------------------
Returns the score of the model on the data X
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/font_trait.py/font_to_str--crossover with--dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/base.py/DensityMixin.score