Contents Up Previous Next

wxFont is-a wxObject

A font is an object that can be set for a device context to determine the characteristics of text drawn with draw-text. It can also be used to set panel item fonts.

wxFont point-size
wxFont family
wxFont style
wxFont weight
wxFont underlined
wxFont create


wxFont point-size

long point-size

The point size of the font. The default is 10.


wxFont family

symbol family

The family of the font. May be one of wxROMAN, wxSCRIPT, wxDECORATIVE, wxSWISS, wxMODERN. The default is wxSWISS.


wxFont style

symbol style

The style of the font. May be one of wxNORMAL, wxITALIC, wxSLANT. The default is wxNORMAL.


wxFont weight

symbol weight

The weight of the font. May be one of wxNORMAL, wxLIGHT, wxBOLD. The default is wxNORMAL.


wxFont underlined

bool underlined

Whether the font is underlined (Windows only). May be TRUE of FALSE. The default is FALSE.


wxFont create

void ( create)

Creates a font for use in a device context. The following slots can be used to initialize the font.