1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00

(x_query_font): Compare names by ignoring case.

This commit is contained in:
Kenichi Handa 2006-08-04 01:41:14 +00:00
parent f3e0a6de08
commit dc3ca1078f

View File

@ -10056,8 +10056,8 @@ x_query_font (f, fontname)
for (i = 0; i < dpyinfo->n_fonts; i++)
if (dpyinfo->font_table[i].name
&& (!strcmp (dpyinfo->font_table[i].name, fontname)
|| !strcmp (dpyinfo->font_table[i].full_name, fontname)))
&& (!strcasecmp (dpyinfo->font_table[i].name, fontname)
|| !strcasecmp (dpyinfo->font_table[i].full_name, fontname)))
return (dpyinfo->font_table + i);
return NULL;
}