From 6e130e0ef2aadd4fe7161a914d2602218744f139 Mon Sep 17 00:00:00 2001 From: Alexandru Geana Date: Wed, 2 Sep 2020 16:43:11 +0300 Subject: [PATCH] Fix windows label padding --- Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index c0d5a6e..718d3d8 100644 --- a/Program.cs +++ b/Program.cs @@ -3,6 +3,7 @@ using System.CommandLine.Invocation; using System.IO; using System.Linq; +using System.Runtime.InteropServices; using ImageMagick; namespace Badger @@ -119,7 +120,7 @@ private static void CreateBadge(BadgeOptions options) var topSettings = new MagickReadSettings { BackgroundColor = new MagickColor(options.Color), - FontPointsize = 40, + FontPointsize = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? 10 : 40, FillColor = new MagickColor(options.Color), Width = 1520 };