From: Jason Rumney Date: Thu, 12 Feb 2009 13:58:29 +0000 (+0000) Subject: (add_font_entity_to_list): Fix check for substituted X-Git-Tag: emacs-pretest-23.0.91~263 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c73abf54bc65c20364afef99b2998468889523d9;p=emacs.git (add_font_entity_to_list): Fix check for substituted raster fonts. (Bug#2219) --- diff --git a/src/w32font.c b/src/w32font.c index ac0360c2be4..d28483ada1e 100644 --- a/src/w32font.c +++ b/src/w32font.c @@ -1433,8 +1433,8 @@ add_font_entity_to_list (logical_font, physical_font, font_type, lParam) 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]