1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxFont
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
11 Standard font families: these may be used only for the font creation, it
12 doesn't make sense to query an existing font for its font family as,
13 especially if the font had been created from a native font description, it
18 wxFONTFAMILY_DEFAULT
= wxDEFAULT
, //!< Chooses a default font.
19 wxFONTFAMILY_DECORATIVE
= wxDECORATIVE
, //!< A decorative font.
20 wxFONTFAMILY_ROMAN
= wxROMAN
, //!< A formal, serif font.
21 wxFONTFAMILY_SCRIPT
= wxSCRIPT
, //!< A handwriting font.
22 wxFONTFAMILY_SWISS
= wxSWISS
, //!< A sans-serif font.
23 wxFONTFAMILY_MODERN
= wxMODERN
, //!< A fixed pitch font.
24 wxFONTFAMILY_TELETYPE
= wxTELETYPE
, //!< A teletype font.
26 wxFONTFAMILY_UNKNOWN
= wxFONTFAMILY_MAX
34 /// The font is drawn without slant.
35 wxFONTSTYLE_NORMAL
= wxNORMAL
,
37 /// The font is slanted in an italic style.
38 wxFONTSTYLE_ITALIC
= wxITALIC
,
40 /// The font is slanted, but in a roman style.
41 /// Note that under wxMSW this style is the same as @c wxFONTSTYLE_ITALIC.
42 wxFONTSTYLE_SLANT
= wxSLANT
,
52 wxFONTWEIGHT_NORMAL
= wxNORMAL
, //!< Normal font.
53 wxFONTWEIGHT_LIGHT
= wxLIGHT
, //!< Light font.
54 wxFONTWEIGHT_BOLD
= wxBOLD
, //!< Bold font.
59 The font flag bits for the new font ctor accepting one combined flags word.
63 /// no special flags: font with default weight/slant/anti-aliasing
64 wxFONTFLAG_DEFAULT
= 0,
66 /// slant flags (default: no slant)
67 wxFONTFLAG_ITALIC
= 1 << 0,
68 wxFONTFLAG_SLANT
= 1 << 1,
70 /// weight flags (default: medium)
71 wxFONTFLAG_LIGHT
= 1 << 2,
72 wxFONTFLAG_BOLD
= 1 << 3,
74 /// anti-aliasing flag: force on or off (default: the current system default)
75 wxFONTFLAG_ANTIALIASED
= 1 << 4,
76 wxFONTFLAG_NOT_ANTIALIASED
= 1 << 5,
78 /// underlined/strikethrough flags (default: no lines)
79 wxFONTFLAG_UNDERLINED
= 1 << 6,
80 wxFONTFLAG_STRIKETHROUGH
= 1 << 7,
82 /// the mask of all currently used flags
83 wxFONTFLAG_MASK
= wxFONTFLAG_ITALIC
|
87 wxFONTFLAG_ANTIALIASED
|
88 wxFONTFLAG_NOT_ANTIALIASED
|
89 wxFONTFLAG_UNDERLINED
|
90 wxFONTFLAG_STRIKETHROUGH
100 /// Default system encoding.
101 wxFONTENCODING_SYSTEM
= -1, // system default
103 /// Default application encoding.
104 wxFONTENCODING_DEFAULT
, // current default encoding
106 // ISO8859 standard defines a number of single-byte charsets
107 wxFONTENCODING_ISO8859_1
, //!< West European (Latin1)
108 wxFONTENCODING_ISO8859_2
, //!< Central and East European (Latin2)
109 wxFONTENCODING_ISO8859_3
, //!< Esperanto (Latin3)
110 wxFONTENCODING_ISO8859_4
, //!< Baltic (old) (Latin4)
111 wxFONTENCODING_ISO8859_5
, //!< Cyrillic
112 wxFONTENCODING_ISO8859_6
, //!< Arabic
113 wxFONTENCODING_ISO8859_7
, //!< Greek
114 wxFONTENCODING_ISO8859_8
, //!< Hebrew
115 wxFONTENCODING_ISO8859_9
, //!< Turkish (Latin5)
116 wxFONTENCODING_ISO8859_10
, //!< Variation of Latin4 (Latin6)
117 wxFONTENCODING_ISO8859_11
, //!< Thai
118 wxFONTENCODING_ISO8859_12
, //!< doesn't exist currently, but put it
119 //!< here anyhow to make all ISO8859
120 //!< consecutive numbers
121 wxFONTENCODING_ISO8859_13
, //!< Baltic (Latin7)
122 wxFONTENCODING_ISO8859_14
, //!< Latin8
123 wxFONTENCODING_ISO8859_15
, //!< Latin9 (a.k.a. Latin0, includes euro)
124 wxFONTENCODING_ISO8859_MAX
,
126 // Cyrillic charset soup (see http://czyborra.com/charsets/cyrillic.html)
127 wxFONTENCODING_KOI8
, //!< KOI8 Russian
128 wxFONTENCODING_KOI8_U
, //!< KOI8 Ukrainian
129 wxFONTENCODING_ALTERNATIVE
, //!< same as MS-DOS CP866
130 wxFONTENCODING_BULGARIAN
, //!< used under Linux in Bulgaria
132 // what would we do without Microsoft? They have their own encodings
134 wxFONTENCODING_CP437
, //!< original MS-DOS codepage
135 wxFONTENCODING_CP850
, //!< CP437 merged with Latin1
136 wxFONTENCODING_CP852
, //!< CP437 merged with Latin2
137 wxFONTENCODING_CP855
, //!< another cyrillic encoding
138 wxFONTENCODING_CP866
, //!< and another one
140 wxFONTENCODING_CP874
, //!< WinThai
141 wxFONTENCODING_CP932
, //!< Japanese (shift-JIS)
142 wxFONTENCODING_CP936
, //!< Chinese simplified (GB)
143 wxFONTENCODING_CP949
, //!< Korean (Hangul charset)
144 wxFONTENCODING_CP950
, //!< Chinese (traditional - Big5)
145 wxFONTENCODING_CP1250
, //!< WinLatin2
146 wxFONTENCODING_CP1251
, //!< WinCyrillic
147 wxFONTENCODING_CP1252
, //!< WinLatin1
148 wxFONTENCODING_CP1253
, //!< WinGreek (8859-7)
149 wxFONTENCODING_CP1254
, //!< WinTurkish
150 wxFONTENCODING_CP1255
, //!< WinHebrew
151 wxFONTENCODING_CP1256
, //!< WinArabic
152 wxFONTENCODING_CP1257
, //!< WinBaltic (same as Latin 7)
153 wxFONTENCODING_CP12_MAX
,
155 wxFONTENCODING_UTF7
, //!< UTF-7 Unicode encoding
156 wxFONTENCODING_UTF8
, //!< UTF-8 Unicode encoding
157 wxFONTENCODING_EUC_JP
, //!< Extended Unix Codepage for Japanese
158 wxFONTENCODING_UTF16BE
, //!< UTF-16 Big Endian Unicode encoding
159 wxFONTENCODING_UTF16LE
, //!< UTF-16 Little Endian Unicode encoding
160 wxFONTENCODING_UTF32BE
, //!< UTF-32 Big Endian Unicode encoding
161 wxFONTENCODING_UTF32LE
, // UTF-32 Little Endian Unicode encoding
163 wxFONTENCODING_MACROMAN
, //!< the standard mac encodings
164 wxFONTENCODING_MACJAPANESE
,
165 wxFONTENCODING_MACCHINESETRAD
,
166 wxFONTENCODING_MACKOREAN
,
167 wxFONTENCODING_MACARABIC
,
168 wxFONTENCODING_MACHEBREW
,
169 wxFONTENCODING_MACGREEK
,
170 wxFONTENCODING_MACCYRILLIC
,
171 wxFONTENCODING_MACDEVANAGARI
,
172 wxFONTENCODING_MACGURMUKHI
,
173 wxFONTENCODING_MACGUJARATI
,
174 wxFONTENCODING_MACORIYA
,
175 wxFONTENCODING_MACBENGALI
,
176 wxFONTENCODING_MACTAMIL
,
177 wxFONTENCODING_MACTELUGU
,
178 wxFONTENCODING_MACKANNADA
,
179 wxFONTENCODING_MACMALAJALAM
,
180 wxFONTENCODING_MACSINHALESE
,
181 wxFONTENCODING_MACBURMESE
,
182 wxFONTENCODING_MACKHMER
,
183 wxFONTENCODING_MACTHAI
,
184 wxFONTENCODING_MACLAOTIAN
,
185 wxFONTENCODING_MACGEORGIAN
,
186 wxFONTENCODING_MACARMENIAN
,
187 wxFONTENCODING_MACCHINESESIMP
,
188 wxFONTENCODING_MACTIBETAN
,
189 wxFONTENCODING_MACMONGOLIAN
,
190 wxFONTENCODING_MACETHIOPIC
,
191 wxFONTENCODING_MACCENTRALEUR
,
192 wxFONTENCODING_MACVIATNAMESE
,
193 wxFONTENCODING_MACARABICEXT
,
194 wxFONTENCODING_MACSYMBOL
,
195 wxFONTENCODING_MACDINGBATS
,
196 wxFONTENCODING_MACTURKISH
,
197 wxFONTENCODING_MACCROATIAN
,
198 wxFONTENCODING_MACICELANDIC
,
199 wxFONTENCODING_MACROMANIAN
,
200 wxFONTENCODING_MACCELTIC
,
201 wxFONTENCODING_MACGAELIC
,
202 wxFONTENCODING_MACKEYBOARD
,
204 // more CJK encodings (for historical reasons some are already declared
206 wxFONTENCODING_ISO2022_JP
, //!< ISO-2022-JP JIS encoding
208 wxFONTENCODING_MAX
, //!< highest enumerated encoding value
210 wxFONTENCODING_MACMIN
= wxFONTENCODING_MACROMAN
,
211 wxFONTENCODING_MACMAX
= wxFONTENCODING_MACKEYBOARD
,
213 // aliases for endian-dependent UTF encodings
214 wxFONTENCODING_UTF16
, //!< native UTF-16
215 wxFONTENCODING_UTF32
, //!< native UTF-32
217 /// Alias for the native Unicode encoding on this platform
218 /// (this is used by wxEncodingConverter and wxUTFFile only for now)
219 wxFONTENCODING_UNICODE
,
221 // alternative names for Far Eastern encodings
223 wxFONTENCODING_GB2312
= wxFONTENCODING_CP936
, //!< Simplified Chinese
224 wxFONTENCODING_BIG5
= wxFONTENCODING_CP950
, //!< Traditional Chinese
226 // Japanese (see http://zsigri.tripod.com/fontboard/cjk/jis.html)
227 wxFONTENCODING_SHIFT_JIS
= wxFONTENCODING_CP932
//!< Shift JIS
235 A font is an object which determines the appearance of text.
236 Fonts are used for drawing text to a device context, and setting the appearance
239 This class uses @ref overview_refcount "reference counting and copy-on-write"
240 internally so that assignments between two instances of this class are very
241 cheap. You can therefore use actual objects instead of pointers without
242 efficiency problems. If an instance of this class is changed it will create
243 its own data internally so that other instances, which previously shared the
244 data using the reference counting, are not affected.
246 You can retrieve the current system font settings with wxSystemSettings.
252 ::wxNullFont, ::wxNORMAL_FONT, ::wxSMALL_FONT, ::wxITALIC_FONT, ::wxSWISS_FONT
254 @see @ref overview_font, wxDC::SetFont, wxDC::DrawText,
255 wxDC::GetTextExtent, wxFontDialog, wxSystemSettings
257 class wxFont
: public wxGDIObject
266 Copy constructor, uses @ref overview_refcount "reference counting".
268 wxFont(const wxFont
& font
);
271 Creates a font object with the specified attributes.
274 Size in points. See SetPointSize() for more info.
276 Font family, a generic way of referring to fonts without specifying actual
277 facename. One of the ::wxFontFamily enumeration values.
279 One of @c wxFONTSTYLE_NORMAL, @c wxFONTSTYLE_SLANT and @c wxFONTSTYLE_ITALIC.
281 Font weight, sometimes also referred to as font boldness.
282 One of the ::wxFontWeight enumeration values.
284 The value can be @true or @false.
285 At present this has an effect on Windows and Motif 2.x only.
287 An optional string specifying the actual typeface to be used.
288 If it is an empty string, a default typeface will be chosen based on the family.
290 An encoding which may be one of the enumeration values of ::wxFontEncoding.
291 Briefly these can be summed up as:
293 <TR><TD>@c wxFONTENCODING_SYSTEM</TD><TD>Default system encoding.</TD></TR>
294 <TR><TD>@c wxFONTENCODING_DEFAULT</TD><TD>
295 Default application encoding: this is the encoding set by calls to
296 SetDefaultEncoding() and which may be set to, say, KOI8 to create all
297 fonts by default with KOI8 encoding. Initially, the default application
298 encoding is the same as default system encoding.</TD></TR>
299 <TR><TD>@c wxFONTENCODING_ISO8859_1...15</TD><TD>ISO8859 encodings.</TD></TR>
300 <TR><TD>@c wxFONTENCODING_KOI8</TD><TD>The standard Russian encoding for Internet.</TD></TR>
301 <TR><TD>@c wxFONTENCODING_CP1250...1252</TD><TD>Windows encodings similar to ISO8859 (but not identical).</TD></TR>
303 If the specified encoding isn't available, no font is created
304 (see also @ref overview_fontencoding).
306 @remarks If the desired font does not exist, the closest match will be
307 chosen. Under Windows, only scalable TrueType fonts are used.
309 wxFont(int pointSize
, wxFontFamily family
, wxFontStyle style
,
311 bool underline
= false,
312 const wxString
& faceName
= wxEmptyString
,
313 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
316 Creates a font object with the specified attributes.
319 Size in pixels. See SetPixelSize() for more info.
321 Font family, a generic way of referring to fonts without specifying actual
322 facename. One of ::wxFontFamily enumeration values.
324 One of @c wxFONTSTYLE_NORMAL, @c wxFONTSTYLE_SLANT and @c wxFONTSTYLE_ITALIC.
326 Font weight, sometimes also referred to as font boldness.
327 One of the ::wxFontWeight enumeration values.
329 The value can be @true or @false.
330 At present this has an effect on Windows and Motif 2.x only.
332 An optional string specifying the actual typeface to be used.
333 If it is an empty string, a default typeface will be chosen based on the family.
335 An encoding which may be one of the enumeration values of ::wxFontEncoding.
336 Briefly these can be summed up as:
338 <TR><TD>@c wxFONTENCODING_SYSTEM</TD><TD>Default system encoding.</TD></TR>
339 <TR><TD>@c wxFONTENCODING_DEFAULT</TD><TD>
340 Default application encoding: this is the encoding set by calls to
341 SetDefaultEncoding() and which may be set to, say, KOI8 to create all
342 fonts by default with KOI8 encoding. Initially, the default application
343 encoding is the same as default system encoding.</TD></TR>
344 <TR><TD>@c wxFONTENCODING_ISO8859_1...15</TD><TD>ISO8859 encodings.</TD></TR>
345 <TR><TD>@c wxFONTENCODING_KOI8</TD><TD>The standard Russian encoding for Internet.</TD></TR>
346 <TR><TD>@c wxFONTENCODING_CP1250...1252</TD><TD>Windows encodings similar to ISO8859 (but not identical).</TD></TR>
348 If the specified encoding isn't available, no font is created
349 (see also @ref overview_fontencoding).
351 @remarks If the desired font does not exist, the closest match will be
352 chosen. Under Windows, only scalable TrueType fonts are used.
354 wxFont(const wxSize
& pixelSize
, wxFontFamily family
,
355 wxFontStyle style
, wxFontWeight weight
,
356 bool underline
= false,
357 const wxString
& faceName
= wxEmptyString
,
358 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
363 See @ref overview_refcount_destruct "reference-counted object destruction"
366 @remarks Although all remaining fonts are deleted when the application
367 exits, the application should try to clean up all fonts
368 itself. This is because wxWidgets cannot know if a
369 pointer to the font object is stored in an application
370 data structure, and there is a risk of double deletion.
375 Returns the current application's default encoding.
377 @see @ref overview_fontencoding, SetDefaultEncoding()
379 static wxFontEncoding
GetDefaultEncoding();
382 Returns the typeface name associated with the font, or the empty string if
383 there is no typeface information.
387 virtual wxString
GetFaceName() const;
390 Gets the font family. See SetFamily() for a list of valid
395 virtual wxFontFamily
GetFamily() const;
398 Returns the platform-dependent string completely describing this font.
399 Returned string is always non-empty.
401 Note that the returned string is not meant to be shown or edited by the user: a
402 typical use of this function is for serializing in string-form a wxFont object.
404 @see SetNativeFontInfo(), GetNativeFontInfoUserDesc()
406 wxString
GetNativeFontInfoDesc() const;
409 Returns a user-friendly string for this font object.
410 Returned string is always non-empty.
412 The string does not encode all wxFont infos under all platforms;
413 e.g. under wxMSW the font family is not present in the returned string.
415 Some examples of the formats of returned strings (which are platform-dependent)
416 are in SetNativeFontInfoUserDesc().
418 @see SetNativeFontInfoUserDesc(), GetNativeFontInfoDesc()
420 wxString
GetNativeFontInfoUserDesc() const;
427 virtual int GetPointSize() const;
432 Note that under wxMSW if you passed to SetPixelSize() (or to the ctor)
433 a wxSize object with a null width value, you'll get a null width in
438 virtual wxSize
GetPixelSize() const;
441 Gets the font style. See ::wxFontStyle for a list of valid styles.
445 virtual wxFontStyle
GetStyle() const;
448 Returns @true if the font is underlined, @false otherwise.
452 virtual bool GetUnderlined() const;
455 Gets the font weight. See ::wxFontWeight for a list of valid weight identifiers.
459 virtual wxFontWeight
GetWeight() const;
462 Returns @true if the font is a fixed width (or monospaced) font,
463 @false if it is a proportional one or font is invalid.
465 virtual bool IsFixedWidth() const;
468 Returns @true if this object is a valid font, @false otherwise.
470 virtual bool IsOk() const;
474 This function takes the same parameters as the relative
475 @ref wxFont::wxFont "wxFont constructor" and returns a new font
476 object allocated on the heap.
478 static wxFont
* New(int pointSize
, wxFontFamily family
, wxFontStyle style
,
480 bool underline
= false,
481 const wxString
& faceName
= wxEmptyString
,
482 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
483 static wxFont
* New(int pointSize
, wxFontFamily family
,
484 int flags
= wxFONTFLAG_DEFAULT
,
485 const wxString
& faceName
= wxEmptyString
,
486 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
487 static wxFont
* New(const wxSize
& pixelSize
,
491 bool underline
= false,
492 const wxString
& faceName
= wxEmptyString
,
493 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
494 static wxFont
* New(const wxSize
& pixelSize
,
496 int flags
= wxFONTFLAG_DEFAULT
,
497 const wxString
& faceName
= wxEmptyString
,
498 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
502 Sets the default font encoding.
504 @see @ref overview_fontencoding, GetDefaultEncoding()
506 static void SetDefaultEncoding(wxFontEncoding encoding
);
509 Sets the facename for the font.
510 Returns @true if the given face name exists; @false otherwise.
513 A valid facename, which should be on the end-user's system.
515 @remarks To avoid portability problems, don't rely on a specific face,
516 but specify the font family instead or as well.
517 A suitable font will be found on the end-user's system.
518 If both the family and the facename are specified,
519 wxWidgets will first search for the specific face, and
520 then for a font belonging to the same family.
522 @see GetFaceName(), SetFamily()
524 virtual bool SetFaceName(const wxString
& faceName
);
527 Sets the font family.
530 One of the ::wxFontFamily values.
532 @see GetFamily(), SetFaceName()
534 virtual void SetFamily(wxFontFamily family
);
537 Creates the font corresponding to the given native font description string
538 which must have been previously returned by GetNativeFontInfoDesc().
540 If the string is invalid, font is unchanged.
541 This function is typically used for de-serializing a wxFont object
542 previously saved in a string-form.
544 @return @true if the creation was successful.
546 @see SetNativeFontInfoUserDesc()
548 bool SetNativeFontInfo(const wxString
& info
);
551 Creates the font corresponding to the given native font description string and
552 returns @true if the creation was successful.
554 Unlike SetNativeFontInfo(), this function accepts strings which are user-friendly.
555 Examples of accepted string formats are:
558 @hdr3col{platform, generic syntax, example}
559 @row3col{wxGTK2, <tt>[FACE-NAME] [bold] [oblique|italic] [POINTSIZE]</tt>, Monospace bold 10}
560 @row3col{wxMSW, <tt>[light|bold] [italic] [FACE-NAME] [POINTSIZE] [ENCODING]</tt>, Tahoma 10 WINDOWS-1252}
563 @todo add an example for wxMac
565 For more detailed information about the allowed syntaxes you can look at the
566 documentation of the native API used for font-rendering
567 (e.g. @c pango_font_description_from_string on GTK).
569 Note that unlike SetNativeFontInfo(), this function doesn't always restore all
570 attributes of the wxFont object under all platforms; e.g. on wxMSW the font family
571 is not restored (because GetNativeFontInfoUserDesc doesn't return it on wxMSW).
572 If you want to serialize/deserialize a font in string form, you should use
573 GetNativeFontInfoDesc() and SetNativeFontInfo() instead.
575 @see SetNativeFontInfo()
577 bool SetNativeFontInfoUserDesc(const wxString
& info
);
582 The <em>point size</em> is defined as 1/72 of the anglo-Saxon inch
583 (25.4 mm): it is approximately 0.0139 inch or 352.8 um.
590 virtual void SetPointSize(int pointSize
);
595 The height parameter of @a pixelSize must be positive while the width
596 parameter may also be zero (to indicate that you're not interested in the
597 width of the characters: a suitable width will be chosen for best rendering).
599 This feature (specifying the font pixel size) is directly supported only
600 under wxMSW and wxGTK currently; under other platforms a font with the
601 closest size to the given one is found using binary search (this maybe slower).
605 virtual void SetPixelSize(const wxSize
& pixelSize
);
611 One of the ::wxFontStyle enumeration values.
615 virtual void SetStyle(wxFontStyle style
);
621 @true to underline, @false otherwise.
625 virtual void SetUnderlined(bool underlined
);
628 Sets the font weight.
631 One of the ::wxFontWeight values.
635 virtual void SetWeight(wxFontWeight weight
);
640 See @ref overview_refcount_equality "reference-counted object comparison" for
643 bool operator!=(const wxFont
& font
) const;
648 See @ref overview_refcount_equality "reference-counted object comparison" for
651 bool operator==(const wxFont
& font
) const;
654 Assignment operator, using @ref overview_refcount "reference counting".
656 wxFont
& operator =(const wxFont
& font
);
666 Equivalent to wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT).
668 @see wxSystemSettings
670 wxFont wxNORMAL_FONT
;
673 A font using the @c wxFONTFAMILY_SWISS family and 2 points smaller than
679 A font using the @c wxFONTFAMILY_ROMAN family and @c wxFONTSTYLE_ITALIC style and
680 of the same size of ::wxNORMAL_FONT.
682 wxFont wxITALIC_FONT
;
685 A font identic to ::wxNORMAL_FONT except for the family used which is
686 @c wxFONTFAMILY_SWISS.
694 A font list is a list containing all fonts which have been created.
695 There is only one instance of this class: ::wxTheFontList.
697 Use this object to search for a previously created font of the desired type
698 and create it if not already found.
700 In some windowing systems, the font may be a scarce resource, so it is best to
701 reuse old resources if possible. When an application finishes, all fonts will
702 be deleted and their resources freed, eliminating the possibility of 'memory
710 class wxFontList
: public wxList
714 Constructor. The application should not construct its own font list:
715 use the object pointer ::wxTheFontList.
720 Finds a font of the given specification, or creates one and adds it to the
721 list. See the @ref wxFont "wxFont constructor" for details of the arguments.
723 wxFont
* FindOrCreateFont(int point_size
, wxFontFamily family
, wxFontStyle style
,
724 wxFontWeight weight
, bool underline
= false,
725 const wxString
& facename
= wxEmptyString
,
726 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
731 The global wxFontList instance.
733 wxFontList
* wxTheFontList
;
736 // ============================================================================
737 // Global functions/macros
738 // ============================================================================
740 /** @addtogroup group_funcmacro_misc */
744 Converts string to a wxFont best represented by the given string. Returns
747 @see wxToString(const wxFont&)
751 bool wxFromString(const wxString
& string
, wxFont
* font
);
754 Converts the given wxFont into a string.
756 @see wxFromString(const wxString&, wxFont*)
760 wxString
wxToString(const wxFont
& font
);