X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2af4afb8269a5ca583278a7d7139bb8f1321535..3964e424bf6b70e43b7cf53ef41d279e4da5c037:/include/wx/mac/font.h diff --git a/include/wx/mac/font.h b/include/wx/mac/font.h index 09d7797a06..a49236c636 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 @@ -27,7 +27,7 @@ public: , m_style(wxNORMAL) , m_weight(wxNORMAL) , m_underlined(FALSE) - , m_faceName("Geneva") + , m_faceName(wxT("Geneva")) , m_encoding(wxFONTENCODING_DEFAULT) , m_macFontNum(0) , m_macFontSize(0) @@ -35,7 +35,7 @@ public: , m_macATSUFontID() { Init(10, wxDEFAULT, wxNORMAL, wxNORMAL, FALSE, - "Geneva", wxFONTENCODING_DEFAULT); + wxT("Geneva"), wxFONTENCODING_DEFAULT); } wxFontRefData(const wxFontRefData& data) @@ -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,14 +103,15 @@ protected: bool m_underlined; wxString m_faceName; wxFontEncoding m_encoding; + bool m_noAA; // No anti-aliasing public: - short m_macFontNum; - short m_macFontSize; + short m_macFontNum; + short m_macFontSize; unsigned char m_macFontStyle; wxUint32 m_macATSUFontID; public: - void MacFindFont() ; + void MacFindFont() ; }; // ---------------------------------------------------------------------------- // wxFont @@ -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();