void wxFont(void)
void wxFont(int point_size, int family, int style, int weight, Bool underline = FALSE)
Creates a font object. If the desired font does not exist, the closest match will be chosen. Under XView, this may result in a number of XView warnings during the matching process; these should be ignored, and will only occur the first time wxWindows attempts to use an absent font in a given size. wxWindows under Motif does the same thing, but silently. Under Windows 3, only scaleable TrueType fonts are used.
Underlining only works under Windows 3 at present.
See also wxDC::SetFont, wxDC::DrawText and wxDC::GetTextExtent.