comparison src/gtkimhtml.c @ 2609:4e4dec9bb7a6

[gaim-migrate @ 2622] don't use DEFAULT_FONT_NAME. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 25 Oct 2001 18:12:48 +0000
parents 35c23df11d16
children 98928712e319
comparison
equal deleted inserted replaced
2608:cad63750f3bb 2609:4e4dec9bb7a6
1795 choice = g_strdup (choices [i]); 1795 choice = g_strdup (choices [i]);
1796 1796
1797 g_strfreev (choices); 1797 g_strfreev (choices);
1798 } else if (!bold && !italics && !fontsize && imhtml->default_font) 1798 } else if (!bold && !italics && !fontsize && imhtml->default_font)
1799 return gdk_font_ref (imhtml->default_font); 1799 return gdk_font_ref (imhtml->default_font);
1800
1801 if (!choice) {
1802 for (i = 0; fontnames [i]; i++)
1803 if (!g_strcasecmp (fontnames [i], DEFAULT_FONT_NAME))
1804 break;
1805 if (fontnames [i])
1806 choice = g_strdup (DEFAULT_FONT_NAME);
1807 }
1808 1800
1809 if (!choice) { 1801 if (!choice) {
1810 if (imhtml->default_font) 1802 if (imhtml->default_font)
1811 return gdk_font_ref (imhtml->default_font); 1803 return gdk_font_ref (imhtml->default_font);
1812 return gdk_fontset_load ("-*-*-*-*-*-*-*-*-*-*-*-*-*-*,*"); 1804 return gdk_fontset_load ("-*-*-*-*-*-*-*-*-*-*-*-*-*-*,*");