FS#21693 - Can't export text/font

Attached to Project: Arch Linux
Opened by Robert Orzanna (orschiro) - Sunday, 14 November 2010, 10:41 GMT
Last edited by Gaetan Bisson (vesath) - Sunday, 14 November 2010, 17:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture x86_64
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I'm not able to export any text in xournal. I tried several fonts the result is always a blank page. This problem affects only the 'export to PDF' function. Print function instead works.

This has to be an arch related problem, I tested the latest Linux Mint and it worked there.

Additional info:
* package version(s)
* config and/or log files etc.

extra/xournal 0.4.5-2

Steps to reproduce:

Use any font, insert a text box and try to export it with the internal export function.
This task depends upon

Closed by  Gaetan Bisson (vesath)
Sunday, 14 November 2010, 17:50 GMT
Reason for closing:  Fixed
Comment by Gaetan Bisson (vesath) - Sunday, 14 November 2010, 12:56 GMT
It exports properly about half the fonts on my system (e.g. all the DejaVu ones).
The others are indeed not exported properly and show up as Helvetica in pdffonts with "Error: Wrong type in font encoding resource differences (string)".

What version of xournal was it you tested on Linux Mint?
Comment by Robert Orzanna (orschiro) - Sunday, 14 November 2010, 14:06 GMT
I can't even export DejaVu fonts. I attached you my example project and the result in pdf. It's simply plain.

On Mint 10 I tested the latest version, so xournal (0.4.5-2build1).
Comment by Gaetan Bisson (vesath) - Sunday, 14 November 2010, 14:45 GMT
Okay, our problems are different; mine is expected: I was trying with bitmap and OTF fonts which are not supported (see xournal manual).

As for yours: I can export your XOJ file into a correct PDF. The PDF you attached is the same as mine except that it does not embed the font "DejaVuSansCondensed". So something on your system is not right. Have you configured anything related to fonts-handling?
Also, please do "pacman -Syu xournal poppler-glib poppler ttf-dejavu fontconfig"; that should help your system get better. :)
Comment by Robert Orzanna (orschiro) - Sunday, 14 November 2010, 14:59 GMT
I don't think I have made some specific changes except using the ubuntu-lcd packages.

But I even tried without them and the normal packages, so fontconfig, but it doesn't work either.

Also I reinstalled all the related packages but it didn't help.

Any other ideas?

Regards
Comment by Gaetan Bisson (vesath) - Sunday, 14 November 2010, 15:13 GMT
Well, if your poppler package is up-to-date, no, I don't really have other ideas...
Maybe run xournal from the command line and see if error messages pop there when you export as PDF?
Do you have only one computer running Arch Linux? If not, does your other computer also have this bug?
Comment by Gaetan Bisson (vesath) - Sunday, 14 November 2010, 17:03 GMT
I think I found the issue: you're running a 64-bit system, right? (BTW, it's kind of useful to include that type of info in bug reports...)

Edit: Oh, you did, sorry, I mixed this bug up with another one. Anyhow, fix is on the way.
Comment by Robert Orzanna (orschiro) - Sunday, 14 November 2010, 17:39 GMT
Indeed I do. And yes I mentioned it above as you know. ;)

I'm curious to hear the solution. :)
Comment by Gaetan Bisson (vesath) - Sunday, 14 November 2010, 17:45 GMT
Bah, the solution is boring: the data types used in the xo-print.c code that handles PDF export were architecture-dependent ==> wrong PDF output on 64-bit systems.

Edit: If you can't wait for the updated package to reach a repo near you, get it from my personal one: http://arch.vesath.org/all/xournal-0.4.5-3-x86_64.pkg.tar.xz

Loading...