svn path=/trunk/; revision=20747
This commit is contained in:
Matthias Clasen 2008-07-03 17:37:07 +00:00
parent c20433d644
commit 5d0421f6c3
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,8 @@
Bug 535498 Printing demo broken
* demos/gtk-demo/printing.c: Use monospace as font name,
not mono. Patch by Yevgen Muntyan.
not mono. Also use the right advance when moving from line to line.
Patch by Yevgen Muntyan.
2008-07-03 Matthias Clasen <mclasen@redhat.com>

View File

@ -123,7 +123,7 @@ draw_page (GtkPrintOperation *operation,
{
pango_layout_set_text (layout, data->lines[line], -1);
pango_cairo_show_layout (cr, layout);
cairo_rel_move_to (cr, 0, text_height);
cairo_rel_move_to (cr, 0, data->font_size);
line++;
}