changeset 2615:8b84198651c9

[gaim-migrate @ 2628] yikes committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 25 Oct 2001 22:16:16 +0000
parents 3e2f455cb924
children 62bd04e00eb3
files src/gtkimhtml.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Thu Oct 25 20:58:01 2001 +0000
+++ b/src/gtkimhtml.c	Thu Oct 25 22:16:16 2001 +0000
@@ -1799,6 +1799,14 @@
 		return gdk_font_ref (imhtml->default_font);
 
 	if (!choice) {
+		for (i = 0; fontnames [i]; i++)
+			if (!g_strcasecmp (fontnames [i], DEFAULT_FONT_NAME))
+				break;
+		if (fontnames [i])
+			choice = g_strdup (DEFAULT_FONT_NAME);
+	}
+
+	if (!choice) {
 		if (imhtml->default_font)
 			return gdk_font_ref (imhtml->default_font);
 		return gdk_fontset_load ("-*-*-*-*-*-*-*-*-*-*-*-*-*-*,*");