#pragma implementation "font.h"
#endif
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
+
#include "wx/font.h"
#include "wx/fontutil.h"
#include "wx/cmndata.h"
#include "wx/gdicmn.h"
#include "wx/tokenzr.h"
#include "wx/settings.h"
-
-#include <strings.h>
+#include "wx/mgl/private.h"
// ----------------------------------------------------------------------------
// wxFontRefData
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