Gnucash print fonts

Jack Stewart jack at webtech.co.nz
Thu Aug 31 06:09:52 EDT 2006


-----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-----


More information about the gnucash-user mailing list