mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-17 23:06:16 +00:00
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>
This commit is contained in:
parent
c89f88378a
commit
4daa61756e
1 changed files with 1 additions and 0 deletions
1
print.c
1
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue