Not using XmlFont

This commit is contained in:
Jaex 2014-07-19 22:10:25 +03:00
parent 6986bf5efa
commit 410ffdd687
2 changed files with 3 additions and 2 deletions

View file

@ -241,7 +241,7 @@ public static ContextMenuStrip CreateCodesMenu(TextBox tb, params ReplacementVar
{
ContextMenuStrip cms = new ContextMenuStrip
{
Font = new XmlFont("Lucida Console", 8),
Font = new Font("Lucida Console", 8),
AutoClose = false,
Opacity = 0.9,
ShowImageMargin = false

View file

@ -408,9 +408,10 @@ public static Icon GetProgressIcon(int percentage)
}
}
using (Font font = new Font("Arial", 7, FontStyle.Bold))
using (StringFormat sf = new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center })
{
g.DrawString(percentage.ToString(), new XmlFont("Arial", 7, FontStyle.Bold), Brushes.White, 8, 8, sf);
g.DrawString(percentage.ToString(), font, Brushes.White, 8, 8, sf);
}
g.DrawRectangleProper(Pens.WhiteSmoke, 0, 0, 16, 16);