]>
Commit | Line | Data |
---|---|---|
a660d684 KB |
1 | \section{\class{wxFontList}}\label{wxfontlist} |
2 | ||
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'. | |
9 | ||
10 | \wxheading{Derived from} | |
11 | ||
12 | \helpref{wxList}{wxlist}\\ | |
13 | \helpref{wxObject}{wxobject} | |
14 | ||
954b8ae6 JS |
15 | \wxheading{Include files} |
16 | ||
17 | <wx/gdicmn.h> | |
18 | ||
a7af285d VZ |
19 | \wxheading{Library} |
20 | ||
21 | \helpref{wxCore}{librarieslist} | |
22 | ||
a660d684 KB |
23 | \wxheading{See also} |
24 | ||
25 | \helpref{wxFont}{wxfont} | |
26 | ||
27 | \latexignore{\rtfignore{\wxheading{Members}}} | |
28 | ||
f0e8a2d0 | 29 | \membersection{wxFontList::wxFontList}\label{wxfontlistctor} |
a660d684 KB |
30 | |
31 | \func{}{wxFontList}{\void} | |
32 | ||
33 | Constructor. The application should not construct its own font list: | |
34 | use the object pointer {\bf wxTheFontList}. | |
35 | ||
a660d684 KB |
36 | \membersection{wxFontList::FindOrCreateFont}\label{findorcreatefont} |
37 | ||
cc81d32f | 38 | \func{wxFont *}{FindOrCreateFont}{\param{int}{ point\_size}, \param{int}{ family}, \param{int}{ style}, \param{int}{ weight}, \param{bool}{ underline = false}, |
605d715d | 39 | \param{const wxString\& }{facename = NULL}, \param{wxFontEncoding }{encoding = wxFONTENCODING\_DEFAULT}{}} |
a660d684 | 40 | |
b236c10f | 41 | Finds a font of the given specification, or creates one and adds it to the list. See the \helpref{wxFont constructor}{wxfontctor} for |
a660d684 KB |
42 | details of the arguments. |
43 |