GNOME Bugzilla – Bug 455407
Fonts in invoices not related to any other font settings, details can be lost on invoice
Last modified: 2018-06-29 21:42:17 UTC
Please describe the problem: When i print an invoice, the fonts that are used are not related to any other font i've configured with my gnome and/or gnucash applications. This is a symptom of the inability of the gnome project to form a cohesive desktop appearance. Performing a stack trace and looking at the code in gnucash i can see that gnucash uses libgtkhtml to produce these invoices but there are no parameters passed to it regarding what fonts it should use, so libgtkhtml falls back to what is #defined which is a 12 point font. It may even be possible that you cannot pass a font specification to libgtkhtml. Steps to reproduce: 1. Create an invoice 2. Print it 3. look at invoice Actual results: I get an invoice with 2 pages when i only have a couple of items, the second page is the last column of text Expected results: It should work like any decent application in a solid desktop expirience and allow me to either configure the fonts or use an existing configured font (maybe from the check book font?) Does this happen every time? Yes. Other information: This bug has been around since the early gnucash issues
From gtkhtml3.8-3.12.3 source gtkhtml-properties.c:#define DEFAULT_FONT_SIZE 10 gtkhtml-properties.c:#define DEFAULT_FONT_SIZE_PRINT 10
Additionally font types are not respected
Duplicate of bug#350408?
With webkit html engine for 2.4, as long as we supply a ui to specify fonts to put into css, this will be handled.
For 2.3.3, there will be a new stylesheet called stylesheet-css which will allow you to specify the fonts for reports. I haven't looked to see what would be needed for invoices.
It looks as though stylesheets also apply to invoices, so some strings can have their font controlled.
*** Bug 584554 has been marked as a duplicate of this bug. ***
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=455407. Please update any external references or bookmarks.