From 057b4b41483fc03fb0518195c8115ac1305eb716 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 14 Dec 2020 16:54:55 +0100 Subject: [PATCH] gdi32: Don't create font substitutes for identical names. Signed-off-by: Alexandre Julliard --- dlls/gdi32/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdi32/font.c b/dlls/gdi32/font.c index 5da8b620fd4..764eb110086 100644 --- a/dlls/gdi32/font.c +++ b/dlls/gdi32/font.c @@ -605,7 +605,7 @@ static struct gdi_font_family *create_family( const WCHAR *name, const WCHAR *se family->refcount = 1; lstrcpynW( family->family_name, name, LF_FACESIZE ); - if (second_name && second_name[0]) + if (second_name && second_name[0] && wcsicmp( name, second_name )) { lstrcpynW( family->second_name, second_name, LF_FACESIZE ); add_gdi_font_subst( second_name, -1, name, -1 );