X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3bf5a59b5e058bebffcf9d87f03550b4ecf93e73..30bb5e18acd15fdab9ca70f600eee43771e28928:/src/mac/font.cpp?ds=inline diff --git a/src/mac/font.cpp b/src/mac/font.cpp index bb1c2b4939..ef0ecc73b6 100644 --- a/src/mac/font.cpp +++ b/src/mac/font.cpp @@ -23,7 +23,7 @@ #include "wx/fontutil.h" #include "wx/mac/private.h" -#include "ATSUnicode.h" +#include #if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject) @@ -370,6 +370,8 @@ void wxFont::SetNoAntiAliasing( bool no ) // accessors // ---------------------------------------------------------------------------- +// TODO: insert checks everywhere for M_FONTDATA == NULL! + int wxFont::GetPointSize() const { return M_FONTDATA->m_pointSize; @@ -413,6 +415,26 @@ bool wxFont::GetNoAntiAliasing() return M_FONTDATA->m_noAA; } +short wxFont::GetMacFontNum() const +{ + return M_FONTDATA->m_macFontNum; +} + +short wxFont::GetMacFontSize() const +{ + return M_FONTDATA->m_macFontSize; +} + +wxByte wxFont::GetMacFontStyle() const +{ + return M_FONTDATA->m_macFontStyle; +} + +wxUint32 wxFont::GetMacATSUFontID() const +{ + return M_FONTDATA->m_macATSUFontID; +} + const wxNativeFontInfo *wxFont::GetNativeFontInfo() const { wxCHECK_MSG( Ok(), NULL, wxT("invalid font") );