Author: fejj
Date: 2008-02-08 17:07:53 -0500 (Fri, 08 Feb 2008)
New Revision: 95307
Modified:
trunk/moon/src/font.cpp
Log:
use case-insensitive compare for font names
Modified: trunk/moon/src/font.cpp
===================================================================
--- trunk/moon/src/font.cpp 2008-02-08 21:48:24 UTC (rev 95306)
+++ trunk/moon/src/font.cpp 2008-02-08 22:07:53 UTC (rev 95307)
@@ -650,7 +650,7 @@
// make sure the font family name matches what was
requested...
for (i = 0; families[i]; i++) {
- if (!strcmp (face->family_name, families[i]))
+ if (!g_ascii_strcasecmp (face->family_name,
families[i]))
break;
}
@@ -659,7 +659,8 @@
break;
}
- d(fprintf (stderr, "no; incorrect family\n"));
+ d(fprintf (stderr, "no; incorrect family: '%s' does not
match '%s'\n",
+ face->family_name, family_name));
FT_Done_Face (face);
face = NULL;
} else {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches