]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/graphcmn.cpp
Allow creating wxGraphicsFont without using wxFont.
[wxWidgets.git] / src / common / graphcmn.cpp
index a312abf3123fe3f1d50fa3895d8935a0621b3d54..33009406c435f68ba9edb0071aa210b419431585 100644 (file)
@@ -837,12 +837,20 @@ wxGraphicsContext::CreateRadialGradientBrush(
                           );
 }
 
-// sets the font
 wxGraphicsFont wxGraphicsContext::CreateFont( const wxFont &font , const wxColour &col ) const
 {
     return GetRenderer()->CreateFont(font,col);
 }
 
+wxGraphicsFont
+wxGraphicsContext::CreateFont(double size,
+                              const wxString& facename,
+                              int flags,
+                              const wxColour& col) const
+{
+    return GetRenderer()->CreateFont(size, facename, flags, col);
+}
+
 wxGraphicsBitmap wxGraphicsContext::CreateBitmap( const wxBitmap& bmp ) const
 {
     return GetRenderer()->CreateBitmap(bmp);