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:
parent
f3e0a6de08
commit
dc3ca1078f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user