X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/85ab460e7d62b52b105b3dc0bbdd36cebc14fb4b..5a1e0e91a1ca5ec98b0eeb335cda757d1261ed08:/src/cocoa/font.cpp diff --git a/src/cocoa/font.cpp b/src/cocoa/font.cpp index 606e2e3d72..bfbed70f38 100644 --- a/src/cocoa/font.cpp +++ b/src/cocoa/font.cpp @@ -11,12 +11,13 @@ #include "wx/wxprec.h" +#include "wx/font.h" + #ifndef WX_PRECOMP #include "wx/string.h" + #include "wx/gdicmn.h" #endif -#include "wx/font.h" -#include "wx/gdicmn.h" #include "wx/encinfo.h" IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject) @@ -36,6 +37,8 @@ wxFontRefData::~wxFontRefData() // TODO: delete font data } +#define M_FONTDATA ((wxFontRefData*)m_refData) + bool wxFont::Create(const wxNativeFontInfo&) { return false; @@ -57,7 +60,10 @@ int wxFont::GetPointSize() const bool wxFont::GetUnderlined() const { - return false; + if(M_FONTDATA) + return M_FONTDATA->m_underlined; + else + return false; } int wxFont::GetStyle() const