X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a246f95e96183bc81bf5be5e1927d9bb53094f55..221ed5767f7ef4d51b0bbef50ec9f53edfaa46f2:/src/mgl/font.cpp diff --git a/src/mgl/font.cpp b/src/mgl/font.cpp index ff9f73343d..3120a1d59f 100644 --- a/src/mgl/font.cpp +++ b/src/mgl/font.cpp @@ -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