Removed wxFont::Set/GetNoAntiAliasing() implementations.
Most of them were dummy and didn't do anything and this API was never meant to be used anyhow. Keep just the declarations in wxFontBase but mark them as deprecated. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -61,10 +61,6 @@ public:
|
||||
|
||||
virtual ~wxFontRefData();
|
||||
|
||||
void SetNoAntiAliasing( bool no = true ) { m_noAA = no; }
|
||||
|
||||
bool GetNoAntiAliasing() const { return m_noAA; }
|
||||
|
||||
void SetPointSize( int size )
|
||||
{
|
||||
if( GetPointSize() != size )
|
||||
@@ -154,7 +150,6 @@ protected:
|
||||
#if wxOSX_USE_CORE_TEXT
|
||||
// void Init( CTFontRef font );
|
||||
#endif
|
||||
bool m_noAA; // No anti-aliasing
|
||||
public:
|
||||
bool m_fontValid;
|
||||
#if wxOSX_USE_CARBON && wxOSX_USE_ATSU_TEXT
|
||||
@@ -184,7 +179,6 @@ wxFontRefData::wxFontRefData(const wxFontRefData& data)
|
||||
{
|
||||
Init();
|
||||
m_info = data.m_info;
|
||||
m_noAA = data.m_noAA;
|
||||
m_fontValid = data.m_fontValid;
|
||||
#if wxOSX_USE_CARBON && wxOSX_USE_ATSU_TEXT
|
||||
m_macThemeFontID = data.m_macThemeFontID;
|
||||
@@ -219,7 +213,6 @@ wxFontRefData::wxFontRefData(const wxFontRefData& data)
|
||||
|
||||
void wxFontRefData::Init()
|
||||
{
|
||||
m_noAA = false;
|
||||
#if wxOSX_USE_CARBON && wxOSX_USE_ATSU_TEXT
|
||||
m_macThemeFontID = kThemeCurrentPortFont ;
|
||||
#endif
|
||||
@@ -656,13 +649,6 @@ void wxFont::SetUnderlined(bool underlined)
|
||||
M_FONTDATA->SetUnderlined( underlined );
|
||||
}
|
||||
|
||||
void wxFont::SetNoAntiAliasing( bool no )
|
||||
{
|
||||
AllocExclusive();
|
||||
|
||||
M_FONTDATA->SetNoAntiAliasing( no );
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// accessors
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -733,13 +719,6 @@ wxFontEncoding wxFont::GetEncoding() const
|
||||
return M_FONTDATA->GetEncoding() ;
|
||||
}
|
||||
|
||||
bool wxFont::GetNoAntiAliasing() const
|
||||
{
|
||||
wxCHECK_MSG( M_FONTDATA != NULL , false, wxT("invalid font") );
|
||||
|
||||
return M_FONTDATA->GetNoAntiAliasing();
|
||||
}
|
||||
|
||||
#if wxOSX_USE_ATSU_TEXT && wxOSX_USE_CARBON
|
||||
|
||||
short wxFont::MacGetFontNum() const
|
||||
|
Reference in New Issue
Block a user