public void Render(TextWriter writer) { if (this.element.Font != null) { writer.Write("<span style='"); var htmlFont = new HtmlFont(this.element.Font); htmlFont.Render(writer); writer.Write("'>"); } writer.Write(this.element.Text.HtmlEncode()); if (this.element.Font != null) { writer.Write("</span>"); } }