]> git.saurik.com Git - wxWidgets.git/commitdiff
wxCairoGraphics need a font event without drawing text
authorRobert Roebling <robert@roebling.de>
Fri, 25 Apr 2008 18:53:02 +0000 (18:53 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 25 Apr 2008 18:53:02 +0000 (18:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/printing/printing.cpp

index 536702e351ddcf9de9e94ed70c5241f4a83c0330..e0a29dc9dd80cd37757433dae07bf27accbc0271 100644 (file)
@@ -417,6 +417,7 @@ void MyFrame::Draw(wxDC& dc)
     {
         // make a path that contains a circle and some lines, centered at 100,100
         gc->SetPen( *wxRED_PEN );
+        gc->SetFont( wxGetApp().m_testFont, *wxGREEN );
         wxGraphicsPath path = gc->CreatePath();
         path.AddCircle( 50.0, 50.0, 50.0 );
         path.MoveToPoint(0.0, 50.0);