wxFont
Creation Parameters
- pointSize
- family
- style
- weight
- underline [=0]
- faceName [=""]
- encoding [=wxFONTENCODING_DEFAULT]
- wxFONTENCODING_SYSTEM = -1, / system default
- wxFONTENCODING_DEFAULT, / current default encoding
- wxFONTENCODING_ISO8859_1, / West European (Latin1)
- wxFONTENCODING_ISO8859_2, / Central and East European (Latin2)
- wxFONTENCODING_ISO8859_3, / Esperanto (Latin3)
- wxFONTENCODING_ISO8859_4, / Baltic (old) (Latin4)
- wxFONTENCODING_ISO8859_5, / Cyrillic
- wxFONTENCODING_ISO8859_6, / Arabic
- wxFONTENCODING_ISO8859_7, / Greek
- wxFONTENCODING_ISO8859_8, / Hebrew
- wxFONTENCODING_ISO8859_9, / Turkish (Latin5)
- wxFONTENCODING_ISO8859_10, / Variation of Latin4 (Latin6)
- wxFONTENCODING_ISO8859_11, / Thai
- wxFONTENCODING_ISO8859_12, / doesn't exist currently, but put it
- wxFONTENCODING_ISO8859_13, / Baltic (Latin7)
- wxFONTENCODING_ISO8859_14, / Latin8
- wxFONTENCODING_ISO8859_15, / Latin9 (a.k.a. Latin0, includes euro)
- wxFONTENCODING_ISO8859_MAX,
- wxFONTENCODING_KOI8, / we don't support any of KOI8 variants
- wxFONTENCODING_ALTERNATIVE, / same as MS-DOS CP866
- wxFONTENCODING_BULGARIAN, / used under Linux in Bulgaria
- wxFONTENCODING_CP437, / original MS-DOS codepage
- wxFONTENCODING_CP850, / CP437 merged with Latin1
- wxFONTENCODING_CP852, / CP437 merged with Latin2
- wxFONTENCODING_CP855, / another cyrillic encoding
- wxFONTENCODING_CP866, / and another one
- wxFONTENCODING_CP874, / WinThai
- wxFONTENCODING_CP932, / Japanese (shift-JIS)
- wxFONTENCODING_CP936, / Chinese simplified (GB)
- wxFONTENCODING_CP949, / Korean (Hangul charset)
- wxFONTENCODING_CP950, / Chinese (traditional - Big5)
- wxFONTENCODING_CP1250, / WinLatin2
- wxFONTENCODING_CP1251, / WinCyrillic
- wxFONTENCODING_CP1252, / WinLatin1
- wxFONTENCODING_CP1253, / WinGreek (8859-7)
- wxFONTENCODING_CP1254, / WinTurkish
- wxFONTENCODING_CP1255, / WinHebrew
- wxFONTENCODING_CP1256, / WinArabic
- wxFONTENCODING_CP1257, / WinBaltic (same as Latin 7)
- wxFONTENCODING_CP12_MAX,
- wxFONTENCODING_UTF7, / UTF-7 Unicode encoding
- wxFONTENCODING_UTF8, / UTF-8 Unicode encoding
- wxFONTENCODING_GB2312 = wxFONTENCODING_CP936, / Simplified Chinese
- wxFONTENCODING_BIG5 = wxFONTENCODING_CP950, / Traditional Chinese
- wxFONTENCODING_SHIFT_JIS = wxFONTENCODING_CP932, / Shift JIS
- wxFONTENCODING_EUC_JP = wxFONTENCODING_UTF8 + 1, / Extended Unix Codepage for Japanese
- wxFONTENCODING_UNICODE, / Unicode - currently used only by
Functions/Procedures
Supertopics
Subtopics
wxFont
Category:
wxFont
Returns the encoding of the specified font.
wxFont
Category:
wxFont
Returns the font family for the specified font.
wxFont
Category:
wxFont
Returns the font data in a sequence that can be used to create
a new font:
{ pointSize, family, style, weight, underlined, faceName, encoding }
wxFont
Category:
wxFont
Returns the face name of the specified font.
wxFont
Category:
wxFont
Returns the point size for the specified font.
wxFont
Category:
wxFont
Returns the style of the specified font.
wxFont
Category:
wxFont
Returns 1 if the specified font is underlined, 0 otherwise.
wxFont
Category:
wxFont
Returns the weight of the specified font.
wxFont
Category:
wxFont
Returns the platform-dependent string completely describing this font. Returned
string is always non-empty. Note that the returned string is not meant to be shown
or edited by the user: a typical use of this function is for serializing in
string-form a wxFont object.
wxFont
Category:
wxFont
Returns a user-friendly string for this font object. Returned string is always non-empty. Some
examples of the formats of returned strings (which are platform-dependent) are in
set_native_font_info_user_desc().
wxFont
Category:
wxFont
wxFont
Category:
wxFont
Sets the default font encoding, which can be one of:
- wxFONTENCODING_SYSTEM The default encoding of the underlying operating system (notice that this might be a "foreign" encoding for foreign versions of Windows 9x/NT).
- wxFONTENCODING_DEFAULT The applications default encoding as returned by wxFont::GetDefaultEncoding. On program startup, the applications default encoding is the same as wxFONTENCODING_SYSTEM, but may be changed to make all the fonts created later to use it (by default).
- wxFONTENCODING_ISO8859_1..15 ISO8859 family encodings which are usually used by all non-Microsoft operating systems
- wxFONTENCODING_KOI8 Standard Cyrillic encoding for the Internet (but see also wxFONTENCODING_ISO8859_5 and wxFONTENCODING_CP1251)
- wxFONTENCODING_CP1250 Microsoft analogue of ISO8859-2
- wxFONTENCODING_CP1251 Microsoft analogue of ISO8859-5
- wxFONTENCODING_CP1252 Microsoft analogue of ISO8859-1
wxFont
Category:
wxFont
Sets the facename for the font.
To avoid portability problems, don't rely on a specific face, but specify the
font family instead or as well. A suitable font will be found on the end-user's
system. If both the family and the facename are specified, wxWidgets will first
search for the specific face, and then for a font belonging to the same family.
wxFont
Category:
wxFont
Sets the font family, which must be one of:
- wxFONTFAMILY_DEFAULT Chooses a default font.
- wxFONTFAMILY_DECORATIVE A decorative font.
- wxFONTFAMILY_ROMAN A formal, serif font.
- wxFONTFAMILY_SCRIPT A handwriting font.
- wxFONTFAMILY_SWISS A sans-serif font.
- wxFONTFAMILY_MODERN A fixed pitch font.
- wxFONTFAMILY_TELETYPE A teletype font.
wxFont
Category:
wxFont
Sets the font style, which must be one of:
- wxFONTSTYLE_NORMAL
- wxFONTSTYLE_SLANT
- wxFONTSTYLE_ITALIC.
wxFont
Category:
wxFont
Sets underlining.
wxFont
Category:
wxFont
Sets the font weight, which must be one of:
- wxFONTWEIGHT_NORMAL Normal font.
- wxFONTWEIGHT_LIGHT Light font.
- wxFONTWEIGHT_BOLD Bold font.
wxFont
Category:
wxFont
Creates the font corresponding to the given native font description string and returns
true if the creation was successful. which must have been previously returned by
get_native_font_info(). If the string is invalid, font is unchanged. This function is
typically used for de-serializing a wxFont object previously saved in a string-form.
wxFont
Category:
wxFont
Creates the font corresponding to the given native font description string and returns
true if the creation was successful. Unlike SetNativeFontInfo, this function accepts
strings which are user-friendly. Examples of accepted string formats are:
- on wxGTK2: [FACE-NAME] [bold] [oblique|italic] [POINTSIZE] Monospace bold 10
- on wxMSW: [light|bold] [italic] [FACE-NAME] [POINTSIZE] [ENCODING] Tahoma 10 WINDOWS-1252
wxFont
Category:
wxFont
This sets the point size of the designated font to the value specified by points.