X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cb349f69fae69fa1a8139fdb7e294737e753a74e..336d8ae9a3feae7b2c3ecd8f64fe0e16984edfe7:/src/richtext/richtextxml.cpp diff --git a/src/richtext/richtextxml.cpp b/src/richtext/richtextxml.cpp index 9a22fd4292..3e03c70559 100644 --- a/src/richtext/richtextxml.cpp +++ b/src/richtext/richtextxml.cpp @@ -893,22 +893,22 @@ wxString wxRichTextXMLHandler::CreateStyle(const wxTextAttrEx& attr, bool isPara if (attr.GetFont().Ok()) { - if (attr.HasSize()) + if (attr.HasFontSize()) str << wxT(" fontsize=\"") << attr.GetFont().GetPointSize() << wxT("\""); - //if (attr.HasFamily()) + //if (attr.HasFontFamily()) // str << wxT(" fontfamily=\"") << attr.GetFont().GetFamily() << wxT("\""); - if (attr.HasItalic()) + if (attr.HasFontItalic()) str << wxT(" fontstyle=\"") << attr.GetFont().GetStyle() << wxT("\""); - if (attr.HasWeight()) + if (attr.HasFontWeight()) str << wxT(" fontweight=\"") << attr.GetFont().GetWeight() << wxT("\""); - if (attr.HasUnderlined()) + if (attr.HasFontUnderlined()) str << wxT(" fontunderlined=\"") << (int) attr.GetFont().GetUnderlined() << wxT("\""); - if (attr.HasFaceName()) + if (attr.HasFontFaceName()) str << wxT(" fontface=\"") << attr.GetFont().GetFaceName() << wxT("\""); }