From 104ffd2b5531bb52c4ed7a92f5f32e8516db34f7 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 15 Jun 2004 11:54:19 +0000 Subject: [PATCH] (main): Make family name to lowercase. --- example/mdump.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/example/mdump.c b/example/mdump.c index 68d0845..6546e6d 100644 --- a/example/mdump.c +++ b/example/mdump.c @@ -213,6 +213,7 @@ #include #include #include +#include #include #include "config.h" @@ -609,7 +610,13 @@ main (int argc, char **argv) mface_put_prop (face, Mfontset, fontset); mface_put_prop (face, Msize, (void *) (fontsize * dpi / 100)); if (family_name) - mface_put_prop (face, Mfamily, msymbol (family_name)); + { + char *p; + + for (p = family_name; *p; p++) + if (isupper (*p)) *p = tolower (*p); + mface_put_prop (face, Mfamily, msymbol (family_name)); + } p = mplist_add (plist, Mdevice, msymbol ("gd")); p = mplist_add (p, Mface, face); -- 1.7.10.4