+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
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;
}