]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/fontlist.tex
more LaTeX error fixes
[wxWidgets.git] / docs / latex / wx / fontlist.tex
CommitLineData
a660d684
KB
1\section{\class{wxFontList}}\label{wxfontlist}
2
3A font list is a list containing all fonts which have been created. There
4is only one instance of this class: {\bf wxTheFontList}. Use this object to search
5for a previously created font of the desired type and create it if not already found.
6In some windowing systems, the font may be a scarce resource, so it is best to
7reuse old resources if possible. When an application finishes, all fonts will be
8deleted and their resources freed, eliminating the possibility of `memory leaks'.
9
10\wxheading{Derived from}
11
7376079d 12\helpref{wxList}{wxlist}
a660d684 13
954b8ae6
JS
14\wxheading{Include files}
15
16<wx/gdicmn.h>
17
a7af285d
VZ
18\wxheading{Library}
19
20\helpref{wxCore}{librarieslist}
21
a660d684
KB
22\wxheading{See also}
23
24\helpref{wxFont}{wxfont}
25
26\latexignore{\rtfignore{\wxheading{Members}}}
27
f0e8a2d0 28\membersection{wxFontList::wxFontList}\label{wxfontlistctor}
a660d684
KB
29
30\func{}{wxFontList}{\void}
31
32Constructor. The application should not construct its own font list:
33use the object pointer {\bf wxTheFontList}.
34
a660d684
KB
35\membersection{wxFontList::FindOrCreateFont}\label{findorcreatefont}
36
cc81d32f 37\func{wxFont *}{FindOrCreateFont}{\param{int}{ point\_size}, \param{int}{ family}, \param{int}{ style}, \param{int}{ weight}, \param{bool}{ underline = false},
605d715d 38 \param{const wxString\& }{facename = NULL}, \param{wxFontEncoding }{encoding = wxFONTENCODING\_DEFAULT}{}}
a660d684 39
b236c10f 40Finds a font of the given specification, or creates one and adds it to the list. See the \helpref{wxFont constructor}{wxfontctor} for
a660d684
KB
41details of the arguments.
42