private void Flush(StringBuilder sb, StringBuilder tempSB, StyleIndex currentStyle)
{
//find textRenderer
if (tempSB.Length == 0)
return;
if (UseStyleTag)
sb.AppendFormat("<font class=fctb{0}>{1}</font>", GetStyleName(currentStyle), tempSB);
else
{
string css = GetCss(currentStyle);
if (css != "")
sb.AppendFormat("<font style=\"{0}\">", css);
sb.Append(tempSB);
if (css != "")
sb.Append("</font>");
}
tempSB.Length = 0;
}