]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/font.h
some stupid attempts to make utf8 work - it doesn't, but the code does no harm and...
[wxWidgets.git] / include / wx / os2 / font.h
index 410e0bc200abc30f0bc2a0d333bbcc112c716ed2..bdbe4002c410ccecc45029a59048b7a04ca4806a 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "wx/gdiobj.h"
 #include "wx/os2/private.h"
+#include "wx/fontutil.h"
 
 WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString;
 
@@ -42,6 +43,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