# HG changeset patch # User Jason Rumney # Date 1234447109 0 # Node ID a36cf7879fb690fa41afa3333d73012c7e01b2c9 # Parent 035c2464c7e2bc6e5cef8061ebd48f4b6cafdd34 (add_font_entity_to_list): Fix check for substituted raster fonts. (Bug#2219) diff -r 035c2464c7e2 -r a36cf7879fb6 src/w32font.c --- a/src/w32font.c Thu Feb 12 12:30:12 2009 +0000 +++ b/src/w32font.c Thu Feb 12 13:58:29 2009 +0000 @@ -1433,8 +1433,8 @@ by a foundry, we accept raster fonts if the font name is found anywhere within the full name. */ if ((logical_font->elfLogFont.lfOutPrecision == OUT_STRING_PRECIS - && strstr (logical_font->elfFullName, - logical_font->elfLogFont.lfFaceName)) + && !strstr (logical_font->elfFullName, + logical_font->elfLogFont.lfFaceName)) /* Check for well known substitutions that mess things up in the presence of Type-1 fonts of the same name. */ || (match_data->pattern.lfFaceName[0]