From: handa Date: Tue, 15 Jun 2004 11:54:19 +0000 (+0000) Subject: (main): Make family name to lowercase. X-Git-Tag: withdl~82 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=104ffd2b5531bb52c4ed7a92f5f32e8516db34f7;p=m17n%2Fm17n-lib.git (main): Make family name to lowercase. --- 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);