added wxFont::IsFixedWidth(), documented it and implemented for wxGTK/Motif
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -196,6 +196,20 @@ wxString wxNativeFontInfo::ToUserString() const
|
||||
return GetXFontName();
|
||||
}
|
||||
|
||||
wxString wxNativeFontInfo::GetXFontComponent(wxXLFDField field) const
|
||||
{
|
||||
wxCHECK_MSG( field < wxXLFD_MAX, _T(""), _T("invalid XLFD field") );
|
||||
|
||||
if ( fontElements[0].empty() )
|
||||
{
|
||||
// const_cast
|
||||
if ( !((wxNativeFontInfo *)this)->FromXFontName(xFontName) )
|
||||
return _T("");
|
||||
}
|
||||
|
||||
return fontElements[field];
|
||||
}
|
||||
|
||||
bool wxNativeFontInfo::FromXFontName(const wxString& fontname)
|
||||
{
|
||||
// TODO: we should be able to handle the font aliases here, but how?
|
||||
|
Reference in New Issue
Block a user