changeset 72262:4aca71077e07

(x_query_font): Compare names by ignoring case.
author Kenichi Handa <handa@m17n.org>
date Fri, 04 Aug 2006 01:41:14 +0000
parents 1f5f7c7bda8a
children 12a2fefc1194
files src/xterm.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Thu Aug 03 22:08:09 2006 +0000
+++ b/src/xterm.c	Fri Aug 04 01:41:14 2006 +0000
@@ -10056,8 +10056,8 @@
 
   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;
 }