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:
@@ -91,9 +91,6 @@ public:
|
||||
bool SetFaceName(const wxString& facename);
|
||||
void SetEncoding(wxFontEncoding encoding);
|
||||
|
||||
void SetNoAntiAliasing( bool no = true ) { m_noAA = no; }
|
||||
bool GetNoAntiAliasing() const { return m_noAA; }
|
||||
|
||||
// and this one also modifies all the other font data fields
|
||||
void SetNativeFontInfo(const wxNativeFontInfo& info);
|
||||
|
||||
@@ -124,7 +121,6 @@ private:
|
||||
bool m_underlined;
|
||||
wxString m_faceName;
|
||||
wxFontEncoding m_encoding; // Unused under GTK 2.0
|
||||
bool m_noAA; // No anti-aliasing
|
||||
|
||||
// The native font info, basicly an XFLD under GTK 1.2 and
|
||||
// the pango font description under GTK 2.0.
|
||||
@@ -163,14 +159,10 @@ void wxFontRefData::Init(int pointSize,
|
||||
|
||||
m_underlined = underlined;
|
||||
m_encoding = encoding;
|
||||
|
||||
m_noAA = false;
|
||||
}
|
||||
|
||||
void wxFontRefData::InitFromNative()
|
||||
{
|
||||
m_noAA = false;
|
||||
|
||||
// get the font parameters from the XLFD
|
||||
// -------------------------------------
|
||||
|
||||
@@ -283,8 +275,6 @@ wxFontRefData::wxFontRefData( const wxFontRefData& data )
|
||||
m_faceName = data.m_faceName;
|
||||
m_encoding = data.m_encoding;
|
||||
|
||||
m_noAA = data.m_noAA;
|
||||
|
||||
// Forces a copy of the internal data. wxNativeFontInfo should probably
|
||||
// have a copy ctor and assignment operator to fix this properly but that
|
||||
// would break binary compatibility...
|
||||
@@ -580,13 +570,6 @@ wxFontEncoding wxFont::GetEncoding() const
|
||||
return M_FONTDATA->m_encoding;
|
||||
}
|
||||
|
||||
bool wxFont::GetNoAntiAliasing() const
|
||||
{
|
||||
wxCHECK_MSG( Ok(), wxFONTENCODING_DEFAULT, wxT("invalid font") );
|
||||
|
||||
return M_FONTDATA->m_noAA;
|
||||
}
|
||||
|
||||
const wxNativeFontInfo *wxFont::GetNativeFontInfo() const
|
||||
{
|
||||
wxCHECK_MSG( Ok(), NULL, wxT("invalid font") );
|
||||
@@ -679,13 +662,6 @@ void wxFont::DoSetNativeFontInfo( const wxNativeFontInfo& info )
|
||||
M_FONTDATA->SetNativeFontInfo( info );
|
||||
}
|
||||
|
||||
void wxFont::SetNoAntiAliasing( bool no )
|
||||
{
|
||||
Unshare();
|
||||
|
||||
M_FONTDATA->SetNoAntiAliasing( no );
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// get internal representation of font
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user