After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 591177 - Printer font is to small to read with webkit as html renderer
Printer font is to small to read with webkit as html renderer
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Reports
2.3.x
Other Windows
: High major
: ---
Assigned To: Andreas Köhler
Andreas Köhler
: 611395 615249 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-08-08 21:00 UTC by Robert Applegate
Modified: 2018-06-29 22:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Example Report Printout (30.36 KB, application/pdf)
2009-08-18 20:36 UTC, ds
Details

Description Robert Applegate 2009-08-08 21:00:29 UTC
The printer reports are in a font that is so small it is unreadable
Comment 1 Phil Longstaff 2009-08-10 19:16:09 UTC
Open the report options and change style sheet to "CSS" (I think that's what it's called).  Then, you can use the menu entry Edit->Stylesheets, select Default-CSS and Edit, and then change the fonts.

Using Edit->Stylesheets, you can create stylesheets based on the base template, so you can have multiple stylesheets, each with different fonts.

Not all reports use the fonts correctly, but a lot/most do.

Does this fix the problem?
Comment 2 ds 2009-08-18 20:36:26 UTC
Created attachment 141110 [details]
Example Report Printout
Comment 3 ds 2009-08-18 20:40:17 UTC
I have the same problem.  This is the first time I have ever installed gnucash.   All of the reports do the same thing.  The output (see attachment) is in minuscule font in the top, left, inch or so of the page.

Changing fonts in the Default-CSS setup does not affect the report.
Comment 4 Phil Longstaff 2009-08-18 20:44:38 UTC
You also need to change the stylesheet to "Default-CSS" in the report options (General page, I think).
Comment 5 ds 2009-08-18 20:49:30 UTC
Changing from default to default-css caused a change in the display of the report (on screen) but when you hit file, print - you get the same result.
Comment 6 ds 2009-08-20 12:51:38 UTC
bump
Comment 7 ds 2009-08-25 15:02:31 UTC
bump bump
Comment 8 Phil Longstaff 2009-08-25 19:11:35 UTC
(In reply to comment #6)
> bump

Are you also on Windows?
Comment 9 ds 2009-08-25 19:32:53 UTC
Sorry for the delay - yes, WinXP.  I can export the report as HTML and it will print properly from Firefox 3.5.2.
Comment 10 ds 2009-08-26 16:41:19 UTC
PS - I updated to gnuCash 2.3.4 and see the same behavior.

FWIW, I have a Brother 5350 and the PDF's that I sent were printed directly using PDFCreator, but both appeared the exact same, so I don't think it is a printer issue.
Comment 11 Eric Engelbrektsson 2009-08-29 17:15:12 UTC
I'm on WinXP - GnuCash 2.3.4 - Report printing to pdf file using any of the stylesheets under Options still results in small print.  I export the report to a file and then open with MS Excel and print from there.  If I open with MS Word, some of the numbers split/wrap to a new line.
Comment 12 ds 2009-08-31 13:13:30 UTC
Work Around - As you said, Eric.... The only work around I have found is to export the report (I used HTML).  Then print from Firefox (or Excel in your case).

The problem looks like a decimal issue when calculating printer page size.  But that is just my uninformed guess.
Comment 13 Phil Longstaff 2009-08-31 13:46:07 UTC
We're using an older version of the webkit html engine on windows built by someone else because I have not been able to build one due to problems with its dependencies.  Maybe I need to try again.  I don't see the problem on linux, but maybe the version we're using doesn't interact with the windows print system properly.

For now, use the workaround.
Comment 14 ds 2009-08-31 16:04:27 UTC
Just to clarify - the HTML export (and apparently the Excel export) works fine, I think that this is just a scaling issue as you can zoom in on the report and all is good.
Comment 15 ds 2009-09-03 13:23:39 UTC
FYI: The problem continues in v2.3.5
Comment 16 ds 2009-10-12 16:59:51 UTC
TESTED- Clean install of v2.3.7 on Fresh Install of Windows 7 Pro (RTM) - Printing problem continues.
Comment 17 RDB 2010-01-09 07:42:24 UTC
Same Problem on our Vista Home 32-bit where we started using GNUCash 2.3.3 for our organization's 2010 books with live data.

I installed 2.3.8 over 2.3.3 on my Windows 7 Home Premius desktop today to see if the printing is still the same tiny font.  It is.
Comment 18 Geert Janssens 2010-01-16 16:18:25 UTC
(In reply to comment #17)
> Same Problem on our Vista Home 32-bit where we started using GNUCash 2.3.3 for
> our organization's 2010 books with live data.
> 
> I installed 2.3.8 over 2.3.3 on my Windows 7 Home Premius desktop today to see
> if the printing is still the same tiny font.  It is.

An off-topic remark for this issue but important anyway:
Let me remind you that the 2.3.x series is the UNSTABLE development version of GnuCash. Bugs in this version may cause unexpected data loss or corruption. I would not recommend using it for live data yet.
Comment 19 Phil Longstaff 2010-01-26 14:41:00 UTC
Removing target of 2.3.X since we will be sticking with gtkhtml on windows and this is webkit-related.
Comment 20 Andreas Köhler 2010-02-03 00:14:59 UTC
Not a critical bug. Lowering severity to major (IMHO it is still normal).
Comment 21 Geert Janssens 2010-02-15 21:21:24 UTC
I have switched the windows build to use gtkhtml until webkit is fixed.
Comment 22 Geert Janssens 2010-02-16 16:44:31 UTC
See also bug #610051.

My attempt to switch to GtkHtml was not successful. With GtkHtml as backend, gnucash on Windows crashes whenever a report is opened.

So the report printing problem is currently not solved:
- Webkit produces fonts that are too small
- GtkHtml crashes.

So either this bug or bug #610051 will have to be resolved before 2.4.

Just to be sure this isn't forgotten, I will add target 2.3.x to both reports. Only one has to be resolved before 2.4.
Comment 23 Adrian Johnson 2010-02-17 09:02:34 UTC
The PDF in comment 2 is about 8 times smaller than it should be. One possible cause of this bug is if gtk_print_operation_set_unit (op, GTK_UNIT_POINTS) is not called. gtkprint defaults to GTK_UNIT_PIXEL - a useless unit to be using with printers.

On Linux GTK_UNIT_PIXEL units are 1 unit = 1/72 inch (the same as GTK_UNIT_POINTS as well as PostScript and PDF units). On Windows GTK_UNIT_PIXEL units are the GDI device units which for printers is the dpi resolution. So for a 600dpi printer 1 unit is 1/600".

If the application was developed on Linux and assumes the default gtkprint units are always 1/72" inch the output on Windows using a 600dpi printer will be 72/600 = 0.12 of the size (or approximately 1/8 of the size).

PDF Creator was used to create the PDF in comment 2. PDF Creator has a default printer resolution of 600dpi. This can be changed in printer properties. A workaround would be to change the PDF Creator printer resolution to 72dpi.
Comment 24 Christian Stimming 2010-02-17 19:49:26 UTC
(In reply to comment #23)
> One possible cause of this bug is if 
> gtk_print_operation_set_unit (op, GTK_UNIT_POINTS) is not called.

Does that mean we should call this function somewhere in our "Print" button callback?
Comment 25 Phil Longstaff 2010-02-24 19:44:55 UTC
Fixed in r18720
Comment 26 Geert Janssens 2010-03-01 22:53:47 UTC
*** Bug 611395 has been marked as a duplicate of this bug. ***
Comment 27 Geert Janssens 2010-04-10 08:52:47 UTC
*** Bug 615249 has been marked as a duplicate of this bug. ***
Comment 28 John Ralls 2018-06-29 22:26:16 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=591177. Please update any external references or bookmarks.