GNOME Bugzilla – Bug 503162
Helvetica, Times, and friends do not print
Last modified: 2008-04-15 22:45:28 UTC
Any text in Helvetica, or Times, New Century Schoolbook, etc (on first glance these seem to be the normally preinstalled fonts) does not print (and doesn't show in the print preview either). This includes any string in which as little as one character is in these fonts. (This bug was initially filed as part of #502206 but I am refiling it as a separate bug since that one had also a print area component.) I suspect that this may be in fact a pango/gtkprint bug but have no hard evidence of that yet. Since the fonts involved are the most likely fonts used in business, I am rainsing the severity of this bug.
*** Bug 502206 has been marked as a duplicate of this bug. ***
Created attachment 100800 [details] example gtk code showing the problem This really looks like a gtk problem. To be exact as a problem with pango_cairo_show_layout I have attached a sample gtk file that should print or show in the print preview two lines of text. The upper one in Sans, the lower one in Helvetica. The lower one does not show. In the sample code there is a commented-out block of lines below the pango_cairo_show_layout that would stroke and file the text. If you enable that block and remove the pango_cairo_show_layout, one sees how the page should look like!
The corresponding gtk bug is #503191
*** This bug has been marked as a duplicate of 503212 ***
Behdad: I am reopening this bug since the fact that this bug can be traced to a serious issue in pango does not help us at the gnumeric level. We will need to figure out some way to make printing work for us with these fonts since they are commonly used.
No offense, but that's such a horrid argument. You can reproduce the bug, just dig into pangocairo-render.c and see what's going wrong. Shouldn't take more than an hour.
Considering that I have never looked at any of the pango/cairo code it would probably take me much more than an hour. In fact it probably takes me much longer to get all the code to build pango onto my machine via dial-up.
I'm attaching the postscript file that results when I make a gnumeric sheet with the single cell "Foo" in Helvetica and print to file. When I send this file to my printer, the printer errors. When I send it to gs, I get the following messages: $ gs -sDEVICE=x11 /tmp/output.ps GPL Ghostscript SVN PRE-RELEASE 8.61 (2007-08-02) Copyright (C) 2007 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Error: /typecheck in definefont Operand stack: CairoFont-1-0 --dict:7/10(L)-- Font Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1889 1 3 %oparray_pop 1888 1 3 %oparray_pop 1872 1 3 %oparray_pop 1755 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- 1845 2 3 %oparray_pop Dictionary stack: --dict:1150/1684(ro)(G)-- --dict:0/20(G)-- --dict:103/200(L)-- Current allocation mode is local Last OS error: 2 Current file position is 25697 GPL Ghostscript SVN PRE-RELEASE 8.61: Unrecoverable error, exit code 1
Created attachment 100844 [details] Result of "print to file"
This is supposed to be fixed in the newest version of cairo (Cairo 1.5.12)
*** Bug 528276 has been marked as a duplicate of this bug. ***