]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mgl/font.h
use correct Windows CE version number in strnlen() check (really closes #10763)
[wxWidgets.git] / include / wx / mgl / font.h
index c372a219b763b53e0178175a7dd8a171d7b425e3..8625ccdd59c153e9622c913ad0731c8217b0b64a 100644 (file)
@@ -60,7 +60,19 @@ public:
     {
         Create(size, family, style, weight, underlined, face, encoding);
     }
-
+    
+    wxFont(const wxSize& pixelSize,
+           wxFontFamily family,
+           wxFontStyle style,
+           wxFontWeight weight,
+           bool underlined = false,
+           const wxString& face = wxEmptyString,
+           wxFontEncoding encoding = wxFONTENCODING_DEFAULT)
+    {
+        Create(10, family, style, weight, underlined, face, encoding);
+        SetPixelSize(pixelSize);
+    }
+    
     bool Create(int size,
                 wxFontFamily family,
                 wxFontStyle style,