Commit 506b72c34e0b2b31044ddaf59e51a9ba70adcf5c

Authored by perry.werneck@gmail.com
1 parent 7d776f99
Exists in master

Em windows o tamanho default da fonte para impressao estava ficando como 0

Showing 1 changed file with 9 additions and 0 deletions   Show diff stats
src/gtk2/print.c
... ... @@ -136,6 +136,15 @@
136 136 Trace("Loading font \"%s\"",fontname);
137 137  
138 138 gtk_font_selection_set_font_name(GTK_FONT_SELECTION(widget),fontname);
  139 +
  140 + if(!gtk_font_selection_get_size(GTK_FONT_SELECTION(widget)))
  141 + {
  142 + // Font size is 0, set it to 10
  143 + gchar *ptr = g_strdup_printf("%s 10",fontname);
  144 + gtk_font_selection_set_font_name(GTK_FONT_SELECTION(widget),ptr);
  145 + g_free(ptr);
  146 + }
  147 +
139 148 }
140 149  
141 150 static GObject * create_custom_widget(GtkPrintOperation *prt, gpointer user_data)
... ...