Merge branch 'release/1.3' of github.com:jklingen/greenshot into release/1.3

This commit is contained in:
local-script 2025-05-16 14:55:46 +02:00
commit ea84a5fdf3

View file

@ -205,7 +205,7 @@ namespace Greenshot.Editor.Drawing
EllipseContainer.DrawEllipse(rect, graphics, rm, 0, Color.Transparent, fillColor, false); EllipseContainer.DrawEllipse(rect, graphics, rm, 0, Color.Transparent, fillColor, false);
} }
float fontSize = Math.Min(Math.Abs(Width), Math.Abs(Height)) / 1.4f; float fontSize = Math.Min(Math.Abs(Width), Math.Abs(Height)) / 3f;
using FontFamily fam = new FontFamily(FontFamily.GenericSansSerif.Name); using FontFamily fam = new FontFamily(FontFamily.GenericSansSerif.Name);
using Font font = new Font(fam, fontSize, FontStyle.Bold, GraphicsUnit.Pixel); using Font font = new Font(fam, fontSize, FontStyle.Bold, GraphicsUnit.Pixel);
TextContainer.DrawText(graphics, rect, 0, lineColor, false, _stringFormat, text, font); TextContainer.DrawText(graphics, rect, 0, lineColor, false, _stringFormat, text, font);