summaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2012-08-28 01:37:56 +0300
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-08-27 15:48:39 -0700
commit4daa61756ed717379c6300c74d7dafdfe937ea1e (patch)
tree950af51fd070fbca5a38f939644c6048362414bc /print.c
parentc89f88378a0a19d6b7e0771b6fd8dc31acfaf2f7 (diff)
downloadsubsurface-4daa61756ed717379c6300c74d7dafdfe937ea1e.tar.gz
make the font size the same when printing on win32/linux
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>
Diffstat (limited to 'print.c')
-rw-r--r--print.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/print.c b/print.c
index d8373e5cf..5083f42fd 100644
--- 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);