为了获取系统的有效字体的一个列表,并使用户可用它们,要使用专门的
类wx.FontEnumerator,如下所示:
e = wx.FontEnumerator()
e.EnumerateFacenames()
fontList = e.GetFacenames()
要限制该列表为固定宽度,就要将上面的第一行改为
e = wx.FontEnumerator(fixedWidth=True)。
转载自:http://bravfing.blog.163.com/blog/static/139958504201022351445736/