Commit c285743c authored by Jason Rumney's avatar Jason Rumney
Browse files

(check_face_name): Use xstrcasecmp. Avoid compiler warning.

parent d60b1ba1
2008-11-24 Jason Rumney <jasonr@gnu.org>
* w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
warning.
2008-11-23 Jason Rumney <jasonr@gnu.org>
* w32uniscribe.c (uniscribe_encode_char): Ensure context is
......
......@@ -1316,17 +1316,18 @@ check_face_name (font, full_name)
to avoid non-truetype fonts, and ends up mixing the Type-1 Helvetica
with Arial's characteristics, since that attempt to use Truetype works
some places, but not others. */
if (!stricmp (font->lfFaceName, "helvetica"))
if (!xstrcasecmp (font->lfFaceName, "helvetica"))
{
strncpy (full_iname, full_name, LF_FULLFACESIZE);
full_iname[LF_FULLFACESIZE] = 0;
_strlwr (full_iname);
return strstr ("helvetica", full_iname);
return strstr ("helvetica", full_iname) != NULL;
}
else if (!stricmp (font->lfFaceName, "times"))
/* Since Times is mapped to Times New Roman, a substring
match is not sufficient to filter out the bogus match. */
return stricmp (full_name, "times");
/* Since Times is mapped to Times New Roman, a substring
match is not sufficient to filter out the bogus match. */
else if (!xstrcasecmp (font->lfFaceName, "times"))
return xstrcasecmp (full_name, "times") == 0;
return 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment