git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52412
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Partial equality test taking flags into account
bool EqPartial(const wxTextAttr& attr, int flags) const;
// Partial equality test taking flags into account
bool EqPartial(const wxTextAttr& attr, int flags) const;
- // Create font from font attributes.
- wxFont CreateFont() const;
-
// Get attributes from font.
bool GetFontAttributes(const wxFont& font, int flags = wxTEXT_ATTR_FONT);
// Get attributes from font.
bool GetFontAttributes(const wxFont& font, int flags = wxTEXT_ATTR_FONT);
const wxString& GetFontFaceName() const { return m_fontFaceName; }
wxFontEncoding GetFontEncoding() const { return m_fontEncoding; }
const wxString& GetFontFaceName() const { return m_fontFaceName; }
wxFontEncoding GetFontEncoding() const { return m_fontEncoding; }
- wxFont GetFont() const { return CreateFont(); }
+ wxFont GetFont() const;
const wxString& GetCharacterStyleName() const { return m_characterStyleName; }
const wxString& GetParagraphStyleName() const { return m_paragraphStyleName; }
const wxString& GetCharacterStyleName() const { return m_characterStyleName; }
const wxString& GetParagraphStyleName() const { return m_paragraphStyleName; }
}
// Create font from font attributes.
}
// Create font from font attributes.
-wxFont wxTextAttr::CreateFont() const
+wxFont wxTextAttr::GetFont() const
+ if ( !HasFont() )
+ return wxNullFont;
+
int fontSize = 10;
if (HasFontSize())
fontSize = GetFontSize();
int fontSize = 10;
if (HasFontSize())
fontSize = GetFontSize();