Bug 58862 - Export as PDF clips glyphs incorrectly for wide characters under certain circumstances
Summary: Export as PDF clips glyphs incorrectly for wide characters under certain circ...
Status: RESOLVED NOTOURBUG
Alias: None
Product: poppler
Classification: Unclassified
Component: cairo backend (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
: 59111 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-29 15:22 UTC by Jeff Veit
Modified: 2013-01-10 09:11 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
PDF example of wide glyph clipping with embedded source doc (88.42 KB, application/pdf)
2012-12-29 15:22 UTC, Jeff Veit
Details
PDF example of wide glyph clipping in LODev-4.0.0.0-beta2 (67.94 KB, application/pdf)
2012-12-29 16:32 UTC, Jeff Veit
Details

Description Jeff Veit 2012-12-29 15:22:19 UTC
Created attachment 72254 [details]
PDF example of wide glyph clipping with embedded source doc

If you Export to PDF a document containing wide glyphs, then those glyphs may be incorrectly clipped when positioned using center or tabs in text with caps or other wide glyphs.

This bug can be triggered by using a font with wide glyphs, having more than one in a line of text, choosing a suitably large font size and centering or tabbing the text. It probably indicates that there is a problem in handling font metrics.

The attachment contains multiple examples of how to trigger the bug and contains the source doc used to create the PDF.
Comment 1 Jeff Veit 2012-12-29 15:59:06 UTC
Updated to 3.6.4.3 release, since just tested with this version. Also present in 3.6.2.2 release.
Comment 2 Jeff Veit 2012-12-29 16:32:52 UTC
Created attachment 72263 [details]
PDF example of wide glyph clipping in LODev-4.0.0.0-beta2

Save as .pdf if the content type is not correctly detected.
Comment 3 Jeff Veit 2012-12-29 16:42:45 UTC
(In reply to comment #2)
> Created attachment 72263 [details]
> PDF example of wide glyph clipping in LODev-4.0.0.0-beta2
> 
> Save as .pdf if the content type is not correctly detected.

This PDF shows that while the problem has been solved in LODev-4.0.0.0-beta2, the fix has introduced a much more serious problem. I will open a separate bug report for this since it's a different, but related bug.
Comment 4 Jeff Veit 2013-01-08 02:29:14 UTC
Changing the Product on this bug, since it seems most likely to be a Poppler problem, rather than a LibreOffice problem. See extra discussion and examples at https://bugs.freedesktop.org/show_bug.cgi?id=58866
Comment 5 Jeff Veit 2013-01-08 02:33:52 UTC
To sum up: a PDF generated by LibreOffice displays just fine in Acrobat Reader. When viewed in Evince or loaded into Gimp, wide glyphs break, displaying only half the glyph. Since Poppler is the common component between Gimp and Evince, it's likely the problem resides here. 

There are PDF examples here, and examples on https://bugs.freedesktop.org/show_bug.cgi?id=58866 with screenshots.
Comment 6 Albert Astals Cid 2013-01-08 09:46:30 UTC
Works with the splash backend (i.e. Okular, pdftoppm, etc), reassigning to the cairo backend
Comment 7 Jose Aliste 2013-01-08 10:20:21 UTC
*** Bug 59111 has been marked as a duplicate of this bug. ***
Comment 8 Jose Aliste 2013-01-08 10:27:01 UTC
Weirdly enough, I don't see the bug with evince and poppler 0.20.2. Will try with poppler from master later
Comment 9 Adrian Johnson 2013-01-08 11:03:13 UTC
Works for me using poppler master and cairo master.
Comment 10 James Cloos 2013-01-08 21:35:30 UTC
Also works for me with cairo and poppler master, somewhat old evince
master and gimp 2.8.2.
Comment 11 Albert Astals Cid 2013-01-08 21:58:09 UTC
Fails here with poppler 0.22 and cairo 1.12.2. But works with poppler 0.20.5 and cairo 1.12.8, so it's a cairo bug that seems was fixed already
Comment 12 glassus 2013-01-08 22:00:29 UTC
I confirm the bug, using evince 3.6.0 and poppler/cairo 0.20.4
Works fine with Acrobat Reader.
Comment 13 Jeff Veit 2013-01-10 09:11:29 UTC
(In reply to comment #11)
> Fails here with poppler 0.22 and cairo 1.12.2. But works with poppler 0.20.5
> and cairo 1.12.8, so it's a cairo bug that seems was fixed already

Yep - I'm using Cairo 1.12.2 on Ubuntu 12.10, so that explains it. I'm delighted that it's already fixed. 

Thank you everyone for your help; I was typesetting a book when I found the problem and knowing I can work around it makes a huge difference to the workflow.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.