miscellaneous wxFont enhancements (patch 1496606):
- made SetFaceName() bool and return false if the face name is not available - corrected To/FromUserString() to complement each other git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -251,7 +251,7 @@ public:
|
||||
m_weight = weight;
|
||||
}
|
||||
|
||||
void SetFaceName(const wxString& faceName)
|
||||
bool SetFaceName(const wxString& faceName)
|
||||
{
|
||||
if ( m_nativeFontInfoOk )
|
||||
m_nativeFontInfo.SetFaceName(faceName);
|
||||
@@ -444,8 +444,9 @@ void wxFont::SetWeight(int weight)
|
||||
{
|
||||
}
|
||||
|
||||
void wxFont::SetFaceName(const wxString& faceName)
|
||||
bool wxFont::SetFaceName(const wxString& faceName)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxFont::SetUnderlined(bool underlined)
|
||||
|
||||
Reference in New Issue
Block a user