]> git.eshelyaron.com Git - emacs.git/commitdiff
(add_font_entity_to_list): Fix check for substituted
authorJason Rumney <jasonr@gnu.org>
Thu, 12 Feb 2009 13:58:29 +0000 (13:58 +0000)
committerJason Rumney <jasonr@gnu.org>
Thu, 12 Feb 2009 13:58:29 +0000 (13:58 +0000)
raster fonts. (Bug#2219)

src/w32font.c

index ac0360c2be444ece68849b12f5f19f437e2328b4..d28483ada1edc47736ed7631e5fd345435eb0fd2 100644 (file)
@@ -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]