fixes for rotated text drawing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -824,7 +824,9 @@ void MyCanvas::DrawText(wxDC& dc)
|
||||
dc.DrawText( "This is text", 110, 10 );
|
||||
dc.DrawRotatedText( "That is text", 20, 10, -45 );
|
||||
|
||||
dc.SetFont( *wxNORMAL_FONT );
|
||||
// use wxSWISS_FONT and not wxNORMAL_FONT as the latter can't be rotated
|
||||
// under Win9x (it is not TrueType)
|
||||
dc.SetFont( *wxSWISS_FONT );
|
||||
|
||||
wxString text;
|
||||
dc.SetBackgroundMode(wxTRANSPARENT);
|
||||
|
Reference in New Issue
Block a user