From 2d44f06a6790dbcefb96e0a7a5becb2cbe15faad Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 3 Sep 2022 18:06:56 -0400 Subject: [PATCH] recognize CSS-style family font list @ https://github.com/ImageMagick/ImageMagick/issues/5531 --- MagickCore/annotate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/annotate.c b/MagickCore/annotate.c index 981ac2f0d4..87cb205674 100644 --- a/MagickCore/annotate.c +++ b/MagickCore/annotate.c @@ -1012,7 +1012,7 @@ static MagickBooleanType RenderType(Image *image,const DrawInfo *draw_info, if ((type_info == (const TypeInfo *) NULL) && (draw_info->family != (const char *) NULL)) { - if (strstr(draw_info->family,",'\"") == (char *) NULL) + if (strpbrk(draw_info->family,",'\"") == (char *) NULL) type_info=GetTypeInfoByFamily(draw_info->family,draw_info->style, draw_info->stretch,draw_info->weight,exception); if (type_info == (const TypeInfo *) NULL)