From 5472a3b080602c8ecb4bcf262ae56acd1c4c5339 Mon Sep 17 00:00:00 2001 From: Salih Date: Mon, 11 Dec 2023 13:07:52 +0300 Subject: [PATCH] Update SimpleMathsCaptchaGenerator.cs --- .../Security/Captcha/SimpleMathsCaptchaGenerator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Security/Captcha/SimpleMathsCaptchaGenerator.cs b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Security/Captcha/SimpleMathsCaptchaGenerator.cs index 9b7263698d..bd5e374226 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Security/Captcha/SimpleMathsCaptchaGenerator.cs +++ b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Security/Captcha/SimpleMathsCaptchaGenerator.cs @@ -101,10 +101,10 @@ public class SimpleMathsCaptchaGenerator : ITransientDependency private byte[] GenerateInternal(string stringText, CaptchaOptions options) { var random = new Random(); - var fontName = MagickNET.FontNames.First(); + var family = MagickNET.FontFamilies.First(); var drawables = new Drawables() - .Font(fontName, options.FontStyle, FontWeight.Normal, FontStretch.Normal) + .Font(family, options.FontStyle, FontWeight.Normal, FontStretch.Normal) .FontPointSize(options.FontSize) .StrokeColor(MagickColors.Transparent);