/////////////////////////////////////////////////////////////////////////////
-// Name: src/gtk/font.cpp
+// Name: src/gtk1/font.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/settings.h"
+ #include "wx/cmndata.h"
+ #include "wx/gdicmn.h"
#endif
#include "wx/fontutil.h"
-#include "wx/cmndata.h"
#include "wx/utils.h"
-#include "wx/gdicmn.h"
#include "wx/tokenzr.h"
#include <strings.h>
void SetStyle(int style);
void SetWeight(int weight);
void SetUnderlined(bool underlined);
- void SetFaceName(const wxString& facename);
+ bool SetFaceName(const wxString& facename);
void SetEncoding(wxFontEncoding encoding);
void SetNoAntiAliasing( bool no = true ) { m_noAA = no; }
// the XLFD doesn't have "underlined" field anyhow
}
-void wxFontRefData::SetFaceName(const wxString& facename)
+bool wxFontRefData::SetFaceName(const wxString& facename)
{
m_faceName = facename;
{
m_nativeFontInfo.SetXFontComponent(wxXLFD_FAMILY, facename);
}
+
+ return true;
}
void wxFontRefData::SetEncoding(wxFontEncoding encoding)
M_FONTDATA->SetWeight(weight);
}
-void wxFont::SetFaceName(const wxString& faceName)
+bool wxFont::SetFaceName(const wxString& faceName)
{
Unshare();
- M_FONTDATA->SetFaceName(faceName);
+ return M_FONTDATA->SetFaceName(faceName) &&
+ wxFontBase::SetFaceName(faceName);
}
void wxFont::SetUnderlined(bool underlined)