FS#47629 - [libreoffice] incorrect pdf output for special characters

Attached to Project: Arch Linux
Opened by David Krivánka (davidge) - Tuesday, 05 January 2016, 07:59 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 01 April 2016, 17:08 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
I have problem with Libre Office PDF export after upgrade to gsfonts-20150811-1-any.pkg.tar.xz. Some characters are missing/wrong, which makes PDF export unusable. Everything works fine with gsfonts-20150808-1-any.pkg.tar.xz

Additional info:
* package version(s): gsfonts-20150811-1

Steps to reproduce:
1. Open LO Writer, write some text with special characters like "í", "é", "ó" or "ý" (Nimbus Sans L).
2. Export to PDF.
The correct result with version 20150808-1 is in 08.pdf. The file generated with 20150811-1 is in 11.pdf, the gs.pdf contains the result with "vanila" gsfonts.
   11.pdf (98.2 KiB)
   08.pdf (94.3 KiB)
   gs.pdf (71 KiB)
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Friday, 01 April 2016, 17:08 GMT
Reason for closing:  Upstream
Comment by Colin Heinzmann (DepthDeluxe) - Tuesday, 05 January 2016, 20:56 GMT
confirmed, issue is also present when using Liberation Serif. Attached PDFs generated from Libreoffice Writer export.
   08.pdf (9.1 KiB)
   11.pdf (97.7 KiB)
Comment by Colin Heinzmann (DepthDeluxe) - Tuesday, 05 January 2016, 21:25 GMT
Just kidding, messed up the previous test by providing the wrong font the second time. Ran the full test again with 20150808, 20150811, and the vanilla gs and it appears that the vanilla gsfonts has the same problem, meaning it is an upstream problem. This makes more sense because the only change in the package bundling was cloning a more recent repository. @David, when running the tests with the vanilla repository, did you remember to regenerate the font configuration, i.e. running

fc-cache -s > /dev/null
mkfontscale /usr/share/fonts/Type1
mkfontdir /usr/share/fonts/Type1

when copying the files over?

Does this mean that the package should be downgraded to the previous version?
   08.pdf (93.7 KiB)
   11.pdf (97.7 KiB)
   gs.pdf (97.7 KiB)
Comment by David Krivánka (davidge) - Wednesday, 06 January 2016, 06:26 GMT
You are right, I tested everything again and the problem is in the vanilla repository (I had older version). Sorry for this.

Yes, when I downgrade back to 20150808, the problem is solved, so the downgrade would be a good solution.
Comment by Colin Heinzmann (DepthDeluxe) - Wednesday, 06 January 2016, 16:36 GMT
Reported upstream, they are aware of this issue and think it has something to do with the way Libreoffice exports PDFs, see http://bugs.ghostscript.com/show_bug.cgi?id=696263
Comment by Gaetan Bisson (vesath) - Thursday, 07 January 2016, 06:57 GMT
I've assigned this bug to the libreoffice maintainer. Cheers.
Comment by Andreas Radke (AndyRTR) - Sunday, 17 January 2016, 20:54 GMT Comment by Andreas Radke (AndyRTR) - Friday, 01 April 2016, 17:07 GMT
I'm CC'ed to the upstream report. Closing the downstream bug for now.

Loading...