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 503162 - Helvetica, Times, and friends do not print
Helvetica, Times, and friends do not print
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Printing
git master
Other Linux
: Normal major
: ---
Assigned To: Andreas J. Guelzow
Jody Goldberg
: 502206 528276 (view as bug list)
Depends on: 503212
Blocks:
 
 
Reported: 2007-12-12 00:55 UTC by Andreas J. Guelzow
Modified: 2008-04-15 22:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
example gtk code showing the problem (1.20 KB, application/x-compressed-tar)
2007-12-12 04:32 UTC, Andreas J. Guelzow
Details
Result of "print to file" (25.93 KB, application/postscript)
2007-12-12 19:01 UTC, Jon Kåre Hellan
Details

Description Andreas J. Guelzow 2007-12-12 00:55:57 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.
Comment 1 Andreas J. Guelzow 2007-12-12 00:57:17 UTC
*** Bug 502206 has been marked as a duplicate of this bug. ***
Comment 2 Andreas J. Guelzow 2007-12-12 04:32:38 UTC
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!
Comment 3 Andreas J. Guelzow 2007-12-12 04:42:24 UTC
The corresponding gtk bug is #503191
Comment 4 Behdad Esfahbod 2007-12-12 08:04:55 UTC

*** This bug has been marked as a duplicate of 503212 ***
Comment 5 Andreas J. Guelzow 2007-12-12 10:04:39 UTC
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. 
Comment 6 Behdad Esfahbod 2007-12-12 15:16:55 UTC
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.
Comment 7 Andreas J. Guelzow 2007-12-12 18:30:19 UTC
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.
Comment 8 Jon Kåre Hellan 2007-12-12 19:00:14 UTC
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
Comment 9 Jon Kåre Hellan 2007-12-12 19:01:37 UTC
Created attachment 100844 [details]
Result of "print to file"
Comment 10 Andreas J. Guelzow 2008-03-31 18:45:14 UTC
This is supposed to be fixed in the newest version of cairo (Cairo 1.5.12)
Comment 11 Andreas J. Guelzow 2008-04-15 22:45:28 UTC
*** Bug 528276 has been marked as a duplicate of this bug. ***