return false;
}
+bool wxNativeFontInfo::GetStrikethrough() const
+{
+ return false;
+}
+
wxString wxNativeFontInfo::GetFaceName() const
{
// the Pango "family" is the wx "face name"
wxFAIL_MSG( "not implemented" );
}
+void wxNativeFontInfo::SetStrikethrough(bool WXUNUSED(strikethrough))
+{
+ wxFAIL_MSG( "not implemented" );
+}
+
bool wxNativeFontInfo::SetFaceName(const wxString& facename)
{
pango_font_description_set_family(description, wxPANGO_CONV(facename));
if ( !HasElements() )
{
- // const_cast
- if ( !((wxNativeFontInfo *)this)->FromXFontName(xFontName) )
+ if ( !const_cast<wxNativeFontInfo *>(this)->FromXFontName(xFontName) )
return wxEmptyString;
}
elt = wxT('*');
}
- // const_cast
- ((wxNativeFontInfo *)this)->xFontName << wxT('-') << elt;
+ const_cast<wxNativeFontInfo *>(this)->xFontName << wxT('-') << elt;
}
}
if ( !HasElements() )
{
- // const_cast
- if ( !((wxNativeFontInfo *)this)->FromXFontName(xFontName) )
+ if ( !const_cast<wxNativeFontInfo *>(this)->FromXFontName(xFontName) )
{
wxFAIL_MSG( wxT("can't set font element for invalid XLFD") );
// can't do this under X
}
+void wxNativeFontInfo::SetStrikethrough(bool WXUNUSED(strikethrough))
+{
+ // this is not supported by Pango fonts neither
+}
+
bool wxNativeFontInfo::SetFaceName(const wxString& facename)
{
SetXFontComponent(wxXLFD_FAMILY, facename);