gdi32: Don't create font substitutes for identical names.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-12-14 16:54:55 +01:00
parent b9f5eb5f48
commit 057b4b4148
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ static struct gdi_font_family *create_family( const WCHAR *name, const WCHAR *se
family->refcount = 1; family->refcount = 1;
lstrcpynW( family->family_name, name, LF_FACESIZE ); 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 ); lstrcpynW( family->second_name, second_name, LF_FACESIZE );
add_gdi_font_subst( second_name, -1, name, -1 ); add_gdi_font_subst( second_name, -1, name, -1 );