Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 438688

Summary: <x11-libs/cairo-1.12.6 type1 font parsing bugs lead to app-text/evince pdf printing garbage output
Product: Gentoo Linux Reporter: Thomas Witt <bugs>
Component: [OLD] GNOMEAssignee: Ben de Groot (RETIRED) <yngwin>
Status: RESOLVED FIXED    
Severity: normal CC: gnome, x11
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugzilla.gnome.org/show_bug.cgi?id=686324
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: screenshot of the print preview window
pdf example
new example
Output from 'print to file' (second example)

Description Thomas Witt 2012-10-17 09:19:13 UTC
When I print the attached pdf (or any other one using the nexus font) the characters of each entire line get placed on top of each other. This is even visible in the print preview.

Printing the same pdf from the hplip Device Manager directly it works as expected. 

Reproducible: Always

Steps to Reproduce:
1. open attached test.pdf in evince
2. press print, print preview
Comment 1 Thomas Witt 2012-10-17 09:20:15 UTC
Created attachment 326756 [details]
screenshot of the print preview window
Comment 2 Thomas Witt 2012-10-17 09:21:44 UTC
Created attachment 326758 [details]
pdf example
Comment 3 Thomas Witt 2012-10-17 09:34:01 UTC
Another example can be found in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=688028
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-10-17 18:49:56 UTC
Confirmed both with evince-3.4.0 and 3.6.1, and reported upstream at https://bugzilla.gnome.org/show_bug.cgi?id=686324
Comment 5 Thomas Witt 2012-10-18 07:52:58 UTC
Created attachment 326810 [details]
new example

I installed cairo-9999 and that made it much better, the character spacing works now, but I'm still getting the little box instead of the page number and the equation-counter.
Comment 6 Thomas Witt 2012-10-18 07:53:38 UTC
Created attachment 326812 [details]
Output from 'print to file' (second example)
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-10-18 16:24:16 UTC
@cairo maintainers, please add the following two patches from upstream git:

http://cgit.freedesktop.org/cairo/commit/?id=cffbdf50ce0117d62d6e157369c60e4a8572fd21
http://cgit.freedesktop.org/cairo/commit/?id=599e78ea2ee146c74fc7ffcee32a055dabbefdda

Applying these two patches to cairo-1.12.2-r4 fixes the issue with incorrect character placement in pdf printing from evince.
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-10-31 23:12:55 UTC
1.12.6 is now in CVS.