def METHOD_NAME(font):
    """Converts a wx.Font into a string description of itself."""
    family = {
        wx.FONTFAMILY_DECORATIVE: "decorative ",
        wx.FONTFAMILY_ROMAN: "roman ",
        wx.FONTFAMILY_SCRIPT: "script ",
        wx.FONTFAMILY_SWISS: "swiss ",
        wx.FONTFAMILY_MODERN: "modern ",
        wx.FONTFAMILY_TELETYPE: "typewriter ",
    }.get(font.GetFamily(), "")
    weight = {wx.FONTWEIGHT_LIGHT: " Light", wx.FONTWEIGHT_BOLD: " Bold"}.get(
        font.GetWeight(), ""
    )
    style = {wx.FONTSTYLE_SLANT: " Oblique", wx.FONTSTYLE_ITALIC: " Italic"}.get(
        font.GetStyle(), ""
    )
    underline = ""
    if font.GetUnderlined():
        underline = " underline"
    return "%s point %s%s%s%s%s" % (
        font.GetPointSize(),
        family,
        font.GetFaceName(),
        style,
        weight,
        underline,
    )