if ( !facename.empty() )
{
- wxFont font(wxNORMAL_FONT->GetPointSize(),
- wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL,
- wxFONTWEIGHT_NORMAL, false, facename, encoding);
+ wxFont font(wxFontInfo().FaceName(facename).Encoding(encoding));
DoChangeFont(font);
}
// and now create the correct font
if ( !DoEnumerateFamilies(false, fontenc, true /* silent */) )
{
- wxFont font(wxNORMAL_FONT->GetPointSize(),
- wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL,
- wxFONTWEIGHT_NORMAL, false /* !underlined */,
- wxEmptyString /* facename */, fontenc);
+ wxFont font(wxFontInfo(wxNORMAL_FONT->GetPointSize()).Encoding(fontenc));
if ( font.IsOk() )
{
DoChangeFont(font);
PrepareDC(dc);
// set background
- dc.SetBackground(wxBrush(wxT("white"), wxSOLID));
+ dc.SetBackground(*wxWHITE_BRUSH);
dc.Clear();
dc.SetFont(m_font);
}
// draw the lines between them
- dc.SetPen(wxPen(wxColour(wxT("blue")), 1, wxSOLID));
+ dc.SetPen(*wxBLUE_PEN);
int l;
// horizontal