]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/font.cpp
added WXTRACE env. variable
[wxWidgets.git] / src / mgl / font.cpp
index ff9f73343d4d64d5a113834a7a3ffe666976a056..3120a1d59f097a0c2ff4b6c1a99f1f6095930e88 100644 (file)
@@ -33,6 +33,7 @@
 #include "wx/gdicmn.h"
 #include "wx/tokenzr.h"
 #include "wx/settings.h"
+#include "wx/mgl/private.h"
 
 // ----------------------------------------------------------------------------
 // wxFontRefData
@@ -259,6 +260,13 @@ wxFontEncoding wxFont::GetEncoding() const
     return M_FONTDATA->m_encoding;
 }
 
+bool wxFont::IsFixedWidth() const
+{
+    wxCHECK_MSG( Ok(), FALSE, wxT("invalid font") );
+
+    return (bool)(M_FONTDATA->m_library->GetFamily()->GetInfo()->isFixed);
+}
+
 
 // ----------------------------------------------------------------------------
 // change font attributes