From: Robert Roebling Date: Fri, 25 Apr 2008 18:53:02 +0000 (+0000) Subject: wxCairoGraphics need a font event without drawing text X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0286bbe9b363e9be0e6e7f348b91998f21e9f119?ds=inline wxCairoGraphics need a font event without drawing text git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/printing/printing.cpp b/samples/printing/printing.cpp index 536702e351..e0a29dc9dd 100644 --- a/samples/printing/printing.cpp +++ b/samples/printing/printing.cpp @@ -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);