Gnucash print fonts

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Gnucash print fonts

Jack Stewart-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have been experiencing quite a lot of frustration with the fonts used
when printing Gnucash reports.  The same problem as described here:

http://lists.gnucash.org/pipermail/gnucash-user/2006-March/016043.html

This problem has often been blamed on gtkhtml/gnome-print as in the
above email.  However, I did a little investigation and found that the
font and size have in fact been hard-coded in Gnucash from the outset.
Refer to line 64 of gnome-utils/print-session.c:

ps->default_font = gnome_font_find_closest((guchar *)"Sans Regular",12);

Full source here:

http://svn.gnucash.org/trac/browser/gnucash/trunk/src/gnome-utils/print-session.c

I note that the first revision of this file also had the font and size
hard coded in:

ps->default_font = gnome_font_new("Courier", 12);

http://svn.gnucash.org/trac/browser/gnucash/trunk/src/gnome/print-session.c?rev=5353

It would be good to have the print font configurable some where.  Even
defaulting to the system default font might be ok...

Jack
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE9rVvJpk7CwxaXJcRAqd4AKChoq+/njtdnBpA28bmGUt/0smHzQCfb5Bg
h9QQTcRWMVT1m9u5wS85gE4=
=fXdA
-----END PGP SIGNATURE-----
_______________________________________________
gnucash-user mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: Gnucash print fonts

Andreas Köhler
CONTENTS DELETED
The author has deleted this message.