}
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;
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();
m_macFontSize = 0;
m_macFontStyle = 0;
m_fontId = 0;
+ m_noAA = FALSE;
}
wxFontRefData::~wxFontRefData()
RealizeResource();
}
+void wxFont::SetNoAntiAliasing( bool no )
+{
+ Unshare();
+
+ M_FONTDATA->SetNoAntiAliasing( no );
+
+ RealizeResource();
+}
+
// ----------------------------------------------------------------------------
// accessors
// ----------------------------------------------------------------------------
return M_FONTDATA->m_encoding;
}
+bool wxFont::GetNoAntiAliasing()
+{
+ return M_FONTDATA->m_noAA;
+}
+
m_macFontSize = 0;
m_macFontStyle = 0;
m_fontId = 0;
+ m_noAA = FALSE;
}
wxFontRefData::~wxFontRefData()
RealizeResource();
}
+void wxFont::SetNoAntiAliasing( bool no )
+{
+ Unshare();
+
+ M_FONTDATA->SetNoAntiAliasing( no );
+
+ RealizeResource();
+}
+
// ----------------------------------------------------------------------------
// accessors
// ----------------------------------------------------------------------------
return M_FONTDATA->m_encoding;
}
+bool wxFont::GetNoAntiAliasing()
+{
+ return M_FONTDATA->m_noAA;
+}
+