, 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)
, m_macATSUFontID()
{
Init(10, wxDEFAULT, wxNORMAL, wxNORMAL, FALSE,
- "Geneva", wxFONTENCODING_DEFAULT);
+ wxT("Geneva"), wxFONTENCODING_DEFAULT);
}
wxFontRefData(const wxFontRefData& data)
}
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,
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
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();