wxfontlista font list is a list containing all fonts which have been created. there is only one instance of this class: wxthefontlist. use this object to search for a previously created font of the desired type and create it if not already found. in some windowing systems, the font may be a scarce resource, so it is best to reuse old resources if possible. when an application finishes, all fonts will be deleted and their resources freed, eliminating the possibility of 'memory leaks'. derived from include files <wx/gdicmn.h> see also members
wxfontlist::wxfontlist
wxfontlist::wxfontlistwxfontlist() constructor. the application should not construct its own font list: use the object pointer wxthefontlist.
wxfontlist::findorcreatefontwxfont * findorcreatefont(int point_size, int family, int style, int weight, bool underline = false, const wxstring& facename = null, wxfontencoding encoding = wxfontencoding_default) finds a font of the given specification, or creates one and adds it to the list. see the wxfont constructor for details of the arguments.
|