Skip to content

Commit

Permalink
Fix windows label padding
Browse files Browse the repository at this point in the history
  • Loading branch information
hex committed Sep 2, 2020
1 parent 2fff658 commit 6e130e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.CommandLine.Invocation;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using ImageMagick;

namespace Badger
Expand Down Expand Up @@ -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
};
Expand Down

0 comments on commit 6e130e0

Please sign in to comment.