back to gui
wxFont
generated from ../src/mod_gui/misc/font.cpp
A font is an object which determines the appearance of text.
Fonts are used for drawing text to a device context, and setting the
appearance of a window's text.
Constants
Family
| Name |
Description |
| DEFAULT |
|
| DECORATIVE |
|
| ROMAN |
|
| SCRIPT |
|
| SWISS |
|
| MODERN |
|
Style
| Name |
Description |
| NORMAL |
|
| SLANT |
|
| ITALIC |
|
Weight
| Name |
Description |
| NORMAL |
|
| LIGHT |
|
| BOLD |
|
Class Properties
| Name |
Type |
Description |
| defaultEncoding |
Integer |
Get/Set the default encoding
|
Constructor
wxFont
wxFont()
wxFont(PointSize,
Family,
Style,
Weight,
Underline,
FaceName = "",
Encoding = wxFontEncoding.DEFAULT)
| Name |
Type |
Default |
Description |
| PointSize |
Integer |
|
Size in points
|
| Family |
Integer |
|
Font family, a generic way of referring to fonts without specifying actual facename.
|
| Style |
Integer |
|
Font style
|
| Weight |
Integer |
|
Font weight
|
| Underline |
Boolean |
|
|
| FaceName |
String |
|
An optional string specifying the actual typeface to be used.
When not specified, a default typeface will chosen based on the family.
|
| Encoding |
wxFontEncoding |
wxFontEncoding.DEFAULT |
|
Constructs a new wxFont object.
Properties
| Name |
Type |
Description |
| encoding |
Integer |
|
| faceName |
String |
Get/Set the actual typeface to be used.
|
| family |
Integer |
Font family, a generic way of referring to fonts without specifying an actual facename.
|
| ok |
Boolean |
Returns true when the font is ok.
|
| pointSize |
Integer |
Get/Set size in points
|
| style |
Integer |
Get/Set the font style
|
| underlined |
Boolean |
Get/Set underline.
|
| weight |
Integer |
Get/Set the weight of the font
|