comparison src/w32font.c @ 101975:a36cf7879fb6

(add_font_entity_to_list): Fix check for substituted raster fonts. (Bug#2219)
author Jason Rumney <jasonr@gnu.org>
date Thu, 12 Feb 2009 13:58:29 +0000
parents 280a537a4f06
children 1c96a8f3d1d7
comparison
equal deleted inserted replaced
101974:035c2464c7e2 101975:a36cf7879fb6
1431 DejaVu Sans Mono ExtraLight). Helvetica -> Arial substitution will 1431 DejaVu Sans Mono ExtraLight). Helvetica -> Arial substitution will
1432 therefore get through this test. Since full names can be prefixed 1432 therefore get through this test. Since full names can be prefixed
1433 by a foundry, we accept raster fonts if the font name is found 1433 by a foundry, we accept raster fonts if the font name is found
1434 anywhere within the full name. */ 1434 anywhere within the full name. */
1435 if ((logical_font->elfLogFont.lfOutPrecision == OUT_STRING_PRECIS 1435 if ((logical_font->elfLogFont.lfOutPrecision == OUT_STRING_PRECIS
1436 && strstr (logical_font->elfFullName, 1436 && !strstr (logical_font->elfFullName,
1437 logical_font->elfLogFont.lfFaceName)) 1437 logical_font->elfLogFont.lfFaceName))
1438 /* Check for well known substitutions that mess things up in the 1438 /* Check for well known substitutions that mess things up in the
1439 presence of Type-1 fonts of the same name. */ 1439 presence of Type-1 fonts of the same name. */
1440 || (match_data->pattern.lfFaceName[0] 1440 || (match_data->pattern.lfFaceName[0]
1441 && !check_face_name (&logical_font->elfLogFont, 1441 && !check_face_name (&logical_font->elfLogFont,
1442 logical_font->elfFullName))) 1442 logical_font->elfFullName)))