From 6f64cebf164a4a613f445aa32e70e95ba6a50d45 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 4 Aug 2006 02:50:10 +0000 Subject: [PATCH] (w32_query_font): Compare names by ignoring case. --- src/ChangeLog | 2 ++ src/w32fns.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index b81ffed78b1..faa7db9b206 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2006-08-04 Kenichi Handa + * w32fns.c (w32_query_font): Compare names by ignoring case. + * xterm.c (x_query_font): Compare names by ignoring case. 2006-08-03 Jason Rumney diff --git a/src/w32fns.c b/src/w32fns.c index 68fcced88c2..a3df8de5338 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -6207,7 +6207,7 @@ w32_query_font (struct frame *f, char *fontname) for (i = 0; i < one_w32_display_info.n_fonts ;i++, pfi++) { - if (strcmp(pfi->name, fontname) == 0) return pfi; + if (strcasecmp(pfi->name, fontname) == 0) return pfi; } return NULL; -- 2.39.2