Update SimpleMathsCaptchaGenerator.cs

pull/18291/head
Salih 2 years ago
parent 3733c2a70d
commit 3df52b15e5

@ -101,7 +101,7 @@ public class SimpleMathsCaptchaGenerator : ITransientDependency
private byte[] GenerateInternal(string stringText, CaptchaOptions options)
{
var random = new Random();
var fontName = MagickNET.FontFamilies.First();
var fontName = MagickNET.FontNames.First();
var drawables = new Drawables()
.Font(fontName, options.FontStyle, FontWeight.Normal, FontStretch.Normal)

Loading…
Cancel
Save