]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/font.cpp
Overview of the wxDb and wxDbTable classes added.
[wxWidgets.git] / src / motif / font.cpp
index f7df581fb66615fd5038db918fd61676aa430feb..d81184b0d1b98d879b38183a66e1c7f52054a26a 100644 (file)
@@ -23,6 +23,7 @@
 
 #ifdef __VMS
 #pragma message disable nosimpint
+#include "wx/vms_x_fix.h"
 #endif
 #include <Xm/Xm.h>
 #ifdef __VMS
 #include "wx/font.h"
 #include "wx/gdicmn.h"
 #include "wx/utils.h"       // for wxGetDisplay()
-#include "wx/fontutil.h"
+#include "wx/fontutil.h"    // for wxNativeFontInfo
 
-#if !USE_SHARED_LIBRARIES
-    IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
-#endif
+IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
 
 // ----------------------------------------------------------------------------
 // private classes
@@ -187,6 +186,14 @@ wxFontRefData::~wxFontRefData()
 // wxFont
 // ----------------------------------------------------------------------------
 
+wxFont(const wxNativeFontInfo& info)
+{
+    Init();
+
+    (void)Create(info.pointSize, info.family, info.style, info.weight,
+                 info.underlined, info.faceName, info.encoding);
+}
+
 void wxFont::Init()
 {
     if ( wxTheFontList )