[PATCH] make the font size the same when printing on win32/linux

Lubomir I. Ivanov neolit123 at gmail.com
Mon Aug 27 15:37:56 PDT 2012


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

resent: make this apply after a44d004

http://i47.tinypic.com/154ks2d.png

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 i.e. way too small.

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 print.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/print.c b/print.c
index d8373e5..5083f42 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);
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list