I built a class to enable easy ussage assuming that the bolBold, bolUnderline ... etc were always available.
public static Font SetFontStyle(Font sourcefont, bool bolBold, bool bolUnderline, bool bolItalic, bool bolStrikeout)
{
Font ffont = new Font(sourcefont.Name, sourcefont.Size, FontStyle.Regular);
if (bolBold)
{
ffont = new Font(sourcefont.Name, sourcefont.Size, ffont.Style | FontStyle.Bold);
}
if (bolUnderline)
{
ffont = new Font(sourcefont.Name, sourcefont.Size, ffont.Style | FontStyle.Underline);
}
if (bolItalic)
{
ffont = new Font(sourcefont.Name, sourcefont.Size, ffont.Style | FontStyle.Italic);
}
if (bolStrikeout)
{
ffont = new Font(sourcefont.Name, sourcefont.Size, ffont.Style | FontStyle.Strikeout);
}
return ffont;
}