gdi32: Don't create font substitutes for identical names.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b9f5eb5f48
commit
057b4b4148
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue