summaryrefslogtreecommitdiff
path: root/gtk/gtkstyle.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkstyle.c')
-rw-r--r--gtk/gtkstyle.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 097d68c237..8090325d93 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -396,8 +396,14 @@ gtk_style_new (void)
style = g_new0 (GtkStyle, 1);
if (!default_font)
- default_font =
- gdk_font_load ("-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*");
+ {
+ default_font =
+ gdk_font_load ("-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*");
+ if (!default_font)
+ default_font = gdk_font_load ("fixed");
+ if (!default_font)
+ g_error ("Unable to load default font.");
+ }
style->font = default_font;
gdk_font_ref (style->font);