mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
Changed step label font because with Arial text was not centered correctly
This commit is contained in:
parent
5a87688005
commit
b2bc0a634d
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ public class AnnotationOptions
|
|||
|
||||
// Step drawing
|
||||
public Color StepBorderColor { get; set; } = Color.White;
|
||||
public int StepBorderSize { get; set; } = 0;
|
||||
public int StepBorderSize { get; set; } = 2;
|
||||
public Color StepFillColor { get; set; } = Color.Red;
|
||||
|
||||
// Blur effect
|
||||
|
|
|
@ -102,7 +102,7 @@ public override void OnDraw(Graphics g)
|
|||
|
||||
int fontSize = Math.Min(Rectangle.Width, Rectangle.Height) - offset;
|
||||
|
||||
using (Font font = new Font("Arial", fontSize, GraphicsUnit.Pixel))
|
||||
using (Font font = new Font(FontFamily.GenericSansSerif, fontSize, FontStyle.Bold, GraphicsUnit.Pixel))
|
||||
using (StringFormat sf = new StringFormat { Alignment = StringAlignment.Center, LineAlignment = StringAlignment.Center })
|
||||
{
|
||||
g.TextRenderingHint = TextRenderingHint.AntiAliasGridFit;
|
||||
|
|
Loading…
Reference in a new issue