GNOME Bugzilla – Bug 170238
Bold face text doesn't print in gnumeric
Last modified: 2005-03-15 21:19:43 UTC
Version details: 1.4.1 Distribution/Version: gentoo Make some text in a gnumeric spreadsheet bold face. Either print it or view it in print preview. The bold face text does not appear at all. It appears that bold appears properly in Evolution. (I don't use other gnome applications on a regular basis.) Here are the versions of relevant software installed. app-office/gnumeric-1.4.1 * gnome-base/gnome-print-0.37 * net-print/libgnomecups-0.1.14 * net-print/cups-1.1.23-r1 * net-print/gnome-cups-manager-0.28 *
> gnome-base/gnome-print-0.37 * That's suspect. You really need more like 1.8.something. In fact, I wonder how you compiled as Gnumeric 1.4.1's configure script requires: libgnomeprint-2.2 >= 2.5.2 libgnomeprintui-2.2 >= 2.5.2 So what do you really have there? Also, please make a simple textcase and attach a generated .ps file here.
Created attachment 38662 [details] ps print file that shows the problem
Created attachment 38663 [details] gnumeric file
Hmmm. The comment I wrote got blanked out when I uploaded the files.... Anyway, I don't know what gnome-print is, but I had libgnomeprint(ui)-2.8.2 installed. In fact, upgrading from 2.8.1. to 2.8.2 seems to have coincided with the onset of this problem. I reinstalled 2.8.1 but it doesn't seem to have helped, as you can see from the two files attached. (I don't need to reboot now, do I?)
With that .gnumeric file I do, in fact, get the right bold fonts. It's not in the .ps file. Note also, that the cells are not bold, but the text in them are. (I.e., we are talking rich text.) I don't know if that is related to the problem. There are two obvious suspects: gnome-print (==libgnomeprint; 2.8.2 is fine; no reboot needed) and pango. Please also show me the output from ldd `which gnumeric`
The weird thing is that one of the 5 sheets in the file I'm working on prints ok. Here's ldd `which gnumeric` linux-gate.so.1 => (0xffffe000) libglade-2.0.so.0 => /usr/lib/libglade-2.0.so.0 (0xb7faa000) libgnomeprintui-2-2.so.0 => /usr/lib/libgnomeprintui-2-2.so.0 (0xb7f7f000) libgnomeprint-2-2.so.0 => /usr/lib/libgnomeprint-2-2.so.0 (0xb7f25000) libgnomeui-2.so.0 => /usr/lib/libgnomeui-2.so.0 (0xb7e97000) libSM.so.6 => /usr/lib/libSM.so.6 (0xb7e8e000) libICE.so.6 => /usr/lib/libICE.so.6 (0xb7e76000) libbonoboui-2.so.0 => /usr/lib/libbonoboui-2.so.0 (0xb7e11000) libgnomecanvas-2.so.0 => /usr/lib/libgnomecanvas-2.so.0 (0xb7de5000) libgnome-2.so.0 => /usr/lib/libgnome-2.so.0 (0xb7dd1000) libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0xb7db9000) libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb7d93000) libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7acc000) libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb7a60000) libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb7a46000) libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7a31000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0xb7a2a000) libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0xb7a1f000) libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb79e5000) libgnomevfs-2.so.0 => /usr/lib/libgnomevfs-2.so.0 (0xb797c000) libbonobo-2.so.0 => /usr/lib/libbonobo-2.so.0 (0xb7922000) libgconf-2.so.4 => /usr/lib/libgconf-2.so.4 (0xb78ec000) libbonobo-activation.so.4 => /usr/lib/libbonobo-activation.so.4 (0xb78d7000) libORBit-2.so.0 => /usr/lib/libORBit-2.so.0 (0xb7881000) libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb787d000) libdl.so.2 => /lib/libdl.so.2 (0xb7879000) libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb7874000) libgsf-gnome-1.so.1 => /usr/lib/libgsf-gnome-1.so.1 (0xb786f000) libgsf-1.so.1 => /usr/lib/libgsf-1.so.1 (0xb784f000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb781b000) libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb76b4000) libpthread.so.0 => /lib/libpthread.so.0 (0xb76a2000) libz.so.1 => /lib/libz.so.1 (0xb7691000) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb760c000) libpopt.so.0 => /usr/lib/libpopt.so.0 (0xb7604000) libm.so.6 => /lib/libm.so.6 (0xb75e2000) libc.so.6 => /lib/libc.so.6 (0xb74d2000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb74a7000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7432000) libgnome-keyring.so.0 => /usr/lib/libgnome-keyring.so.0 (0xb7427000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7407000) libX11.so.6 => /usr/lib/libX11.so.6 (0xb7339000) libesd.so.0 => /usr/lib/libesd.so.0 (0xb7330000) libaudiofile.so.0 => /usr/lib/libaudiofile.so.0 (0xb7307000) libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb7303000) libXi.so.6 => /usr/lib/libXi.so.6 (0xb72fb000) libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb72f8000) libXft.so.2 => /usr/lib/libXft.so.2 (0xb72e3000) libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb72de000) libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb72d4000) libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb72cc000) libXext.so.6 => /usr/lib/libXext.so.6 (0xb72bd000) libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0xb728b000) libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0xb718f000) libresolv.so.2 => /lib/libresolv.so.2 (0xb717e000) librt.so.1 => /lib/librt.so.1 (0xb7176000) libORBitCosNaming-2.so.0 => /usr/lib/libORBitCosNaming-2.so.0 (0xb7171000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fec000) libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0xb7161000) libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb713c000)
Quoting Morten: Note also, that the cells are not bold, but the text in them are. (I.e., we are talking rich text.) Sorry, but I don't get this. In fact, on the pages that print correctly, the bold face entries do NOT have bold text, but they appear bold. If you don't mind, could you explain how I did this? Perhaps I could apply the same method to the sheets that don't print properly. Thanks.
There are two ways of getting bold text: 1. Enter Foo in a cell, hit Enter, then click the bold button. The whole cell is turned bold. When you select such a cell, the bold button appears depressed. 2. Enter Foo in cell, select "Foo" and click bold. The word "Foo" turns bold. It happens to be all the text that there is, but the method could be used for a single letter, for example. Method 2 is call rich text. Your sheet uses this method. It shouldn't matter for the final printing result, but maybe it does.
Hmm... Gentoo. That means you compiled yourself. It is possible that you are using the old printing code which did not support rich text and thus obviously would produce the result you see. Could you attach your compilation log, or if you don't have that, either of config.log or gnumeric-config.h. If the gnome_print_pango_create_layout function was present at the time you compiled Gnumeric, you should be using new printing code. Oh, and 1.4.3 is out.
I tried making the cell bold, but not only did it not become bold, but it didn't print either. So, since printing in evolution works OK, I guessed it was something the matter with gnumeric. The Gentoo mantra is, ``When in doubt, recompile.'' So I recompiled, but the problem persists. I'm attaching the log. Thanks for all your help with this.
Created attachment 38668 [details] Compile log (gzipped) Build log for gnumeric
Build log confirms that you are using the new printing code (and that bold printing therefore is supposed to work).
Morten, you forgot to ask which optimization setting: Compiler flags: -march=athlon-xp -O3 -pipe ... Could you try to recompile it with -O2 only? Thanks
Do you mean just -O2 instead of -O3, or to omit -pipe and -march too? In any event, this will have to wait until I get home this evening.
We know that there are occasionally problems with -O3. I don't think that -pipe should affect the result of compilation. I would hope that -march is safe too (My copy of the gcc man page only lists athlon-xp as a value for -mcpu though). So just changing -O3 to -O2 would be interesting. Thanks
I tried compiling with -O2, but it didn't help anything. Not only that, but I can't make the text in a cell bold by selecting the cell and clicking on the bold button, only by selecting the text in the cell and clicking on the bold A. And even doing that, it doesn't show up on the print preview, only on the sheet. Now I've got a sheet where SOME of the bold face text appears in print preview and other doesn't. I can't see any difference in the formatting of the cells or the text in them. Very strange.
OK, you can close this one. I upgraded to 1.4.2 and the problem disappeared. Thanks for all your help.
Hmm... 1.4.2 did sport a pile of rich-text fixes, but I wouldn't have guessed this to be one of them. Please reopen this bug if you have more trouble with printing these.