Mercurial > emacs
changeset 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 | 035c2464c7e2 |
children | 3162f3263757 |
files | src/w32font.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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]