# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1315774364 0 # Node ID 9c47a0245872c40c739a1d7e9139989a376ad782 # Parent 5878dbfafbe2ba236caeffb890dede3932d11599 Added default font of "Sans" on GTK3... This fixes rendering of printed text in dwtest. Still need to figure out where the font should be stored during printing since there isn't an associated window handle. diff -r 5878dbfafbe2 -r 9c47a0245872 gtk3/dw.c --- a/gtk3/dw.c Sun Sep 11 02:45:38 2011 +0000 +++ b/gtk3/dw.c Sun Sep 11 20:52:44 2011 +0000 @@ -6857,7 +6857,7 @@ } if(cr) { - font = pango_font_description_from_string(fontname); + font = pango_font_description_from_string(fontname ? fontname : "Sans"); if(font) { PangoContext *context = pango_cairo_create_context(cr);