/// <summary>
 /// Sets the font.
 /// </summary>
 /// <param name="font"></param>
 public void SetFont(Font font)
 {
     FontConverter converter = new FontConverter();
     _fontString = converter.ConvertToInvariantString(font);
 }
Exemple #2
0
 private void fontToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FontDialog cd = new FontDialog();
     if (cd.ShowDialog() == DialogResult.OK)
     {
         this.dataDisplayBox.Font = cd.Font;
         FontConverter fc = new FontConverter();
         this.fontstyle = fc.ConvertToInvariantString(cd.Font);
         //this.forecolor = ColorTranslator.ToHtml(cd.Color);
     }
 }