Commit 057b4b41 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent b9f5eb5f
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment