well, I recompiled libgnomeprint and libgnomeprintui and got it working, well sorta. It depends on the font I use. If I use Bitstream Vera fonts, the PDF file is perfect. Other fonts have some characters mangled.
By "other fonts" do you mean non-TTF? ...
It's probably a font config problem since the PDF module in libgnomeprint only recognises TTF and Type1 fonts so the font.scale, etc... may need to be looked at.
... if print to PDF "only" works when using TTF fonts then that's no big handicap, I can't imagine why anyone would want to use bitmap fonts anyway
Anywhere we could download the recompiled libgnomeprint and libgnomeprintui?
-- cheers
[div align=\"right\"][a href=\"index.php?act=findpost&pid=126692\"][{POST_SNAPBACK}][/a][/div]
I finally figured out the root of the problem. It is a font config problem.
Abiword can display TTF and maybe Type1 (pfa/pfb) fonts. When printing, the gnome sub system that converts the content to postscript and pdf needs to convert the fonts to Type1 using the available encodings and glyphs. This requires a valid fonts.dir and encodings.dir file for the Type1 fonts. TTF fonts dont need those config files, however, the converted Type1 fonts need them so converting TTF fonts without those config files to Type1 fonts confuses that sub system. Abiword has a ttftool to do the font conversion, but the required font config files are usually missing since TTF fonts dont need them
The other problem is that xpdf needs the same Type1 fonts to display the text.
So, if you have a font that is availale in boths formats, TTF and Type1 with the font config files, then when you print to pdf, it will display correctly in xpdf.
But, if you copy the pdf file to a windows machine which usually have tons of fonts, chances are that it will display correctly in acrobat reader.
Now there is this fonts.alias file and if mapped correctly, you can alias the missing fonts and a substitute font will be used instead so it looks a bit different than the original but something readable is displayed.
Now I don't understand the format of these config files yet, maybe someone else knows. There are also tools to generate those config files like ttmkdir and ttfttool but I was unable to compile them for the Z. maybe someone with a linux machine and those tools can generate those config files.
as for the libgnome libraries, i am now not sure whether they actually need to be recompiled. maybe just fixing the font config files is sufficient. maybe they need recompiling to make the pdf files readable on the Zaurus itself but the generated pdf files seem to be ok if viewed on a PC.