]> git.tdb.fi Git - ext/subsurface.git/commitdiff
make the font size the same when printing on win32/linux
authorLubomir I. Ivanov <neolit123@gmail.com>
Mon, 27 Aug 2012 22:37:56 +0000 (01:37 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 27 Aug 2012 22:48:39 +0000 (15:48 -0700)
Setting the cairo transformation units (..?) to GTK_UNIT_POINTS makes
the font size the same on windows as on linux, when printing.  Otherwise
the text is unreadable ie way too small.

It now looks like
    http://i47.tinypic.com/154ks2d.png

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
print.c

diff --git a/print.c b/print.c
index d8373e5cf441a2a9513085c853be0360d430bf13..5083f42fd36e5a60b3ee655339d5cff018baeb33 100644 (file)
--- a/print.c
+++ b/print.c
@@ -300,6 +300,7 @@ void do_print(void)
 
        repaint_dive();
        print = gtk_print_operation_new();
+       gtk_print_operation_set_unit(print, GTK_UNIT_POINTS);
        if (settings != NULL)
                gtk_print_operation_set_print_settings(print, settings);
        g_signal_connect(print, "create-custom-widget", G_CALLBACK(print_dialog), NULL);