X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2af4afb8269a5ca583278a7d7139bb8f1321535..350777b68f3cbc6c51d8fdbb29151ee36247563e:/include/wx/mac/font.h diff --git a/include/wx/mac/font.h b/include/wx/mac/font.h index 09d7797a06..2c3c17e84e 100644 --- a/include/wx/mac/font.h +++ b/include/wx/mac/font.h @@ -12,7 +12,7 @@ #ifndef _WX_FONT_H_ #define _WX_FONT_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "font.h" #endif @@ -81,6 +81,9 @@ public: } virtual ~wxFontRefData(); + void SetNoAntiAliasing( bool no = TRUE ) { m_noAA = no; } + bool GetNoAntiAliasing() { return m_noAA; } + protected: // common part of all ctors void Init(int size, @@ -100,6 +103,7 @@ protected: bool m_underlined; wxString m_faceName; wxFontEncoding m_encoding; + bool m_noAA; // No anti-aliasing public: short m_macFontNum; @@ -184,6 +188,9 @@ public: virtual bool RealizeResource(); + // Unofficial API, don't use + virtual void SetNoAntiAliasing( bool noAA = TRUE ) ; + virtual bool GetNoAntiAliasing() ; protected: // common part of all ctors void Init();