changeset 1145:9c47a0245872

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.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 11 Sep 2011 20:52:44 +0000
parents 5878dbfafbe2
children 9d97610b2140
files gtk3/dw.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);