I tried for so long now an didn't find the solution how to decrease the size of the default font when using DrawText on a wxMemoryDC.
My Code looks like this so far:
Code: Select all
memDC->SetFont( wxFont( 12, wxDEFAULT, wxNORMAL, wxNORMAL ) ); ... memDC->DrawText( current->m_text, x, y );
But changes to wxFont( 9, ... ) or taking for example
wxFont(9, wxDEFAULT, wxNORMAL, wxNORMAL, false, "Arial")
didn't help. (In the second case nothing is written on the screen!)
Any ideas to this?
(using wxWindows 2.4.2)