]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/font.h
wxNativeFontInfo changes
[wxWidgets.git] / include / wx / os2 / font.h
index 410e0bc200abc30f0bc2a0d333bbcc112c716ed2..94ec7c7bbb52de58801e0e95788c7612df0ef49f 100644 (file)
@@ -42,6 +42,20 @@ public:
         (void)Create(nSize, nFamily, nStyle, nWeight, bUnderlined, rsFace, vEncoding);
     }
 
         (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
     bool Create( int             nSize
                 ,int             nFamily
                 ,int             nStyle