check printing fonts

David Reiser dbreiser at earthlink.net
Tue Oct 3 00:19:50 EDT 2006


line 64 of print-session.c says:

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

On my system, I can change "Sans Regular" to anything else, and I  
still get the same sans-serif font for printed reports and checks. I  
can, however, change the font size -- 10 works much better on the  
wallet checks.

If I delete the (guchar *):

  ps->default_font = gnome_font_find_closest ("Serif Regular", 10);

then my checks (and at least the Account Summary report) print with a  
10 point serif font.

Is this something that would qualify as a bug or enhancement request,  
or is my gnome doing a number on me?

By the way, what I would really like to see is changing line 64 to  
look up a gnucash configure setting where the default print font is  
chosen in GnuCash Preferences something like what gedit does.

It's OK for the human interface elements (menus, dialogs, etc.) to  
have their font match the overall gnome default, but to have to leave  
an application to change a printed report font in the gnome settings  
is just plain loony.

What probably makes my scenario a less-than-simple setting  
substitution is that the rest of the reports may be affected and get  
printed with the 'print font', but gnucash still renders the reports  
onscreen as whatever the system default is. I only checked the  
Account Summary report, but it does appear onscreen in sans-serif,  
while the printed output (and Print Preview) are serif.

Dave
--
David Reiser
dbreiser at earthlink.net
Mac 10.4.8, gcc 4.0.1, gnome hybrid 2.6 - 2.16 (ack!, but it's the  
way Fink has it) -- gnome-utils is 2.6.2





More information about the gnucash-devel mailing list