text: public void SetFontStyle(bool italic, bool bold){bool modified = italic || bold;fontFormatting.IsItalic=italic;fontFormatting.IsBold=bold;fontFormatting.IsFontStyleModified=modified;fontFormatting.IsFontWeightModified=modified;}