mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Not using XmlFont
This commit is contained in:
parent
6986bf5efa
commit
410ffdd687
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue