1998-05-20 10:25:30 -04:00
|
|
|
\section{\class{wxFontList}}\label{wxfontlist}
|
|
|
|
|
|
|
|
A font list is a list containing all fonts which have been created. There
|
|
|
|
is only one instance of this class: {\bf 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'.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxList}{wxlist}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/gdicmn.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxFont}{wxfont}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontList::wxFontList}\label{wxfontlistctor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{wxFontList}{\void}
|
|
|
|
|
|
|
|
Constructor. The application should not construct its own font list:
|
|
|
|
use the object pointer {\bf wxTheFontList}.
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontList::AddFont}\label{wxfontlistaddfont}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{AddFont}{\param{wxFont *}{font}}
|
|
|
|
|
2004-05-04 04:27:20 -04:00
|
|
|
Used by wxWidgets to add a font to the list, called in the font constructor.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\membersection{wxFontList::FindOrCreateFont}\label{findorcreatefont}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
\func{wxFont *}{FindOrCreateFont}{\param{int}{ point\_size}, \param{int}{ family}, \param{int}{ style}, \param{int}{ weight}, \param{bool}{ underline = false},
|
1999-12-24 18:40:13 -05:00
|
|
|
\param{const wxString\& }{facename = NULL}, \param{wxFontEncoding }{encoding = wxFONTENCODING\_DEFAULT}{}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
Finds a font of the given specification, or creates one and adds it to the list. See the \helpref{wxFont constructor}{wxfontctor} for
|
1998-05-20 10:25:30 -04:00
|
|
|
details of the arguments.
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontList::RemoveFont}\label{wxfontlistremovefont}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{RemoveFont}{\param{wxFont *}{font}}
|
|
|
|
|
2004-05-04 04:27:20 -04:00
|
|
|
Used by wxWidgets to remove a font from the list.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
|