From c73abf54bc65c20364afef99b2998468889523d9 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Thu, 12 Feb 2009 13:58:29 +0000 Subject: [PATCH] (add_font_entity_to_list): Fix check for substituted raster fonts. (Bug#2219) --- src/w32font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] -- 2.39.5