]> git.saurik.com Git - wxWidgets.git/commitdiff
Update to allow new wxNativeFontInfo stuff to compile
authorDavid Webster <Dave.Webster@bhmi.com>
Mon, 18 Dec 2000 20:04:50 +0000 (20:04 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Mon, 18 Dec 2000 20:04:50 +0000 (20:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/os2/font.h

index 410e0bc200abc30f0bc2a0d333bbcc112c716ed2..94ec7c7bbb52de58801e0e95788c7612df0ef49f 100644 (file)
@@ -42,6 +42,20 @@ public:
         (void)Create(nSize, nFamily, nStyle, nWeight, bUnderlined, rsFace, vEncoding);
     }
 
+    wxFont(const wxNativeFontInfo& rInfo)
+    {
+        Init();
+
+        (void)Create( rInfo.pointSize
+                     ,rInfo.family
+                     ,rInfo.style
+                     ,rInfo.weight
+                     ,rInfo.underlined
+                     ,rInfo.faceName
+                     ,rInfo.encoding
+                    );
+    }
+
     bool Create( int             nSize
                 ,int             nFamily
                 ,int             nStyle