+ str = styleParams.GetParam(wxS("font-style"));
+ if ( !str.empty() )
+ {
+ // "oblique" and "italic" are more or less the same.
+ // "inherit" (using the parent font) is not supported.
+ if ( str == wxS("oblique") || str == wxS("italic") )
+ {
+ m_WParser->SetFontItalic(true);
+ m_WParser->GetContainer()->InsertCell(
+ new wxHtmlFontCell(m_WParser->CreateCurrentFont()));
+ }
+ else if ( str == wxS("normal") )
+ {
+ m_WParser->SetFontItalic(false);
+ m_WParser->GetContainer()->InsertCell(
+ new wxHtmlFontCell(m_WParser->CreateCurrentFont()));
+ }
+ }