- stream << wxString::Format(wxT("<font face=\"%s\" size=\"%ld\" color=\"%s\" >"),
- style.GetFont().GetFaceName().c_str(), PtToSize(style.GetFont().GetPointSize()),
- style.GetTextColour().GetAsString(wxC2S_HTML_SYNTAX).c_str());
+ stream << wxString::Format(wxT("<font face=\"%s\" size=\"%ld\""), style.GetFontFaceName().c_str(), PtToSize(style.GetFontSize()));
+ if (style.HasTextColour())
+ stream << wxString::Format(wxT(" color=\"%s\""), style.GetTextColour().GetAsString(wxC2S_HTML_SYNTAX).c_str());
+ stream << wxT(" >");