Commit f929522a authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa
Browse files

Be defensive at font-loading time. Basically, gnome-fonts might be

1999-09-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/style.c (style_font_new_simple): Be defensive at
	font-loading time.  Basically, gnome-fonts might be allocated with
	a NULL gdk_font.  Maybe we need to revise this strategy
parent e64173b1
1999-09-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/style.c (style_font_new_simple): Be defensive at
font-loading time. Basically, gnome-fonts might be allocated with
a NULL gdk_font. Maybe we need to revise this strategy
1999-09-23 Morten Welinder <terra@diku.dk>
* configure.in (gnome-print): only require 0.7 -- that's the
......
1999-09-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/style.c (style_font_new_simple): Be defensive at
font-loading time. Basically, gnome-fonts might be allocated with
a NULL gdk_font. Maybe we need to revise this strategy
1999-09-23 Morten Welinder <terra@diku.dk>
* configure.in (gnome-print): only require 0.7 -- that's the
......
......@@ -137,6 +137,13 @@ style_font_new_simple (const char *font_name, double size, double scale, int bol
return NULL;
}
/*
* Worst case scenario
*/
if (font->dfont->gdk_font == NULL){
font->dfont->gdk_font = gdk_font_load ("fixed");
}
font->font = gnome_font_new_closest (
font_name,
bold ? GNOME_FONT_BOLD : GNOME_FONT_BOOK,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment