]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/font.cpp
Sombody committed this with a hard-coded pathname for WXDIR. Fixed.
[wxWidgets.git] / src / motif / font.cpp
index 817ca899384f228b1e975e36846109aab8c2b8ce..10ab6faf5bd090cad51e3be9991d855ff8a3a285 100644 (file)
     #pragma implementation "font.h"
 #endif
 
+#include <Xm/Xm.h>
+
 #include "wx/defs.h"
 #include "wx/string.h"
 #include "wx/font.h"
 #include "wx/gdicmn.h"
-#include "wx/utils.h"
-
-#include <Xm/Xm.h>
+#include "wx/utils.h"       // for wxGetDisplay()
+#include "wx/fontutil.h"
 
 #if !USE_SHARED_LIBRARIES
     IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
@@ -39,7 +40,7 @@
 
 // For every wxFont, there must be a font for each display and scale requested.
 // So these objects are stored in wxFontRefData::m_fonts
-class wxXFont: public wxObject
+class wxXFont : public wxObject
 {
 public:
     wxXFont();
@@ -364,12 +365,12 @@ wxXFont* wxFont::GetInternalFont(double scale, WXDisplay* display) const
                                                M_FONTDATA->m_style,
                                                M_FONTDATA->m_weight,
                                                M_FONTDATA->m_underlined,
-                                               T(""),
+                                               wxT(""),
                                                M_FONTDATA->m_encoding);
 
     if ( !font )
     {
-        wxFAIL_MSG( T("Could not allocate even a default font -- something is wrong.") );
+        wxFAIL_MSG( wxT("Could not allocate even a default font -- something is wrong.") );
 
         return (wxXFont*) NULL;
     }