Gnucash print fonts

Andreas Köhler andi5.py at gmx.net
Thu Aug 31 12:34:44 EDT 2006


Hi,

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

take a look at http://bugzilla.gnome.org/show_bug.cgi?id=350408
(i see the same BTW). This clearly is a serif font and not sans serif. I
tried to track this bug down, but I gave it up, since I was already too
deep in the guts of gtkhtml/gnome-print (maybe someone else has more
patience than me). IIRC this ps->default_font is used in some "graphical
mode" of gnome-print, which I could imagine we do not use. Just
hard-code another font and you will not see any difference :(

Someone else?

-- andi5




More information about the gnucash-user mailing list