'Return a wx font.  Cache instances in a font dictionary for
efficiency'

def get_wx_font(self, s, prop):

    DEBUG_MSG(u'get_wx_font()', 1, self)
    key = hash(prop)
    fontprop = prop
    fontname = fontprop.get_name()
    font = self.fontd.get(key)
    if (font is not None):
        return font
    wxFontname = self.fontnames.get(fontname, wx.ROMAN)
    wxFacename = u''
    size = self.points_to_pixels(fontprop.get_size_in_points())
    font = wx.Font(int((size + 0.5)), wxFontname, self.fontangles[fontprop.get_style()], self.fontweights[fontprop.get_weight()], False, wxFacename)
    self.fontd[key] = font
    return font
