From 5d0421f6c3de152a652b0ce8c101790a9d1f15bd Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 3 Jul 2008 17:37:07 +0000 Subject: [PATCH] One more svn path=/trunk/; revision=20747 --- ChangeLog | 3 ++- demos/gtk-demo/printing.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6a3804851a..8457c7aa02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/demos/gtk-demo/printing.c b/demos/gtk-demo/printing.c index 03997174d6..6d27ac0358 100644 --- a/demos/gtk-demo/printing.c +++ b/demos/gtk-demo/printing.c @@ -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++; }