1 \section{\class{wxFontList
}}\label{wxfontlist
}
3 A font list is a list containing all fonts which have been created. There
4 is only one instance of this class:
{\bf wxTheFontList
}. Use this object to search
5 for a previously created font of the desired type and create it if not already found.
6 In some windowing systems, the font may be a scarce resource, so it is best to
7 reuse old resources if possible. When an application finishes, all fonts will be
8 deleted and their resources freed, eliminating the possibility of `memory leaks'.
10 \wxheading{Derived from
}
12 \helpref{wxList
}{wxlist
}\\
13 \helpref{wxObject
}{wxobject
}
15 \wxheading{Include files
}
21 \helpref{wxFont
}{wxfont
}
23 \latexignore{\rtfignore{\wxheading{Members
}}}
25 \membersection{wxFontList::wxFontList
}
27 \func{}{wxFontList
}{\void}
29 Constructor. The application should not construct its own font list:
30 use the object pointer
{\bf wxTheFontList
}.
32 \membersection{wxFontList::AddFont
}
34 \func{void
}{AddFont
}{\param{wxFont *
}{font
}}
36 Used by wxWidgets to add a font to the list, called in the font constructor.
38 \membersection{wxFontList::FindOrCreateFont
}\label{findorcreatefont
}
40 \func{wxFont *
}{FindOrCreateFont
}{\param{int
}{ point
\_size},
\param{int
}{ family
},
\param{int
}{ style
},
\param{int
}{ weight
},
\param{bool
}{ underline = false
},
41 \param{const wxString\&
}{facename = NULL
},
\param{wxFontEncoding
}{encoding = wxFONTENCODING
\_DEFAULT}{}}
43 Finds a font of the given specification, or creates one and adds it to the list. See the
\helpref{wxFont constructor
}{wxfontconstr
} for
44 details of the arguments.
46 \membersection{wxFontList::RemoveFont
}
48 \func{void
}{RemoveFont
}{\param{wxFont *
}{font
}}
50 Used by wxWidgets to remove a font from the list.