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);