]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cocoa/font.h
Fix missing documentation for several GDI functions.
[wxWidgets.git] / include / wx / cocoa / font.h
index d54a07f6e1211653794961c4644bc505ab281dda..9ea87d6c2f8e75f414afce34d2ab11e8903ded52 100644 (file)
@@ -38,6 +38,20 @@ public:
      */
     wxFont() { }
 
+    wxFont(const wxFontInfo& info)
+    {
+        Create(info.GetPointSize(),
+               info.GetFamily(),
+               info.GetStyle(),
+               info.GetWeight(),
+               info.IsUnderlined(),
+               info.GetFaceName(),
+               info.GetEncoding());
+
+        if ( info.IsUsingSizeInPixels() )
+            SetPixelSize(info.GetPixelSize());
+    }
+
     /*! @abstract   Platform-independent construction with individual properties
      */
 #if FUTURE_WXWIN_COMPATIBILITY_3_0