- str = styleParams.GetParam(wxS("font-size"));
- if ( !str.empty() )
- {
- // Point size
- int foundIndex = str.Find(wxS("pt"));
- if (foundIndex != wxNOT_FOUND)
- {
- str.Truncate(foundIndex);
-
- long sizeValue;
- if (str.ToLong(&sizeValue) == true)
- {
- // Set point size
- m_WParser->SetFontPointSize(sizeValue);
- m_WParser->GetContainer()->InsertCell(
- new wxHtmlFontCell(m_WParser->CreateCurrentFont()));
- }
- }
- // else: check for other ways of specifying size (TODO)
- }
+ m_WParser->SetFontSize(oldsize);
+ m_WParser->SetFontBold(oldbold);
+ m_WParser->SetFontUnderlined(oldunderlined);
+ m_WParser->SetFontFace(oldfontface);
+ m_WParser->SetFontItalic(olditalic);
+ m_WParser->GetContainer()->InsertCell(
+ new wxHtmlFontCell(m_WParser->CreateCurrentFont()));