Bug 66983

Summary: Ligatures (and other characters) are drawn outside selection; should be clipped
Product: poppler Reporter: Ed Catmur <ed>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: poppler-clip-selection-text.patch

Description Ed Catmur 2013-07-17 00:06:55 UTC
Created attachment 82512 [details]
poppler-clip-selection-text.patch

When I select text in italics or containing ligatures, the whole of the glyph is drawn in the selection glyph colour, even when this falls outside the selection box.  It should be fairly easy to clip the text selection text paint to the selection box.
Comment 1 Ed Catmur 2013-07-17 00:11:23 UTC
See attachment to bug 7002 for a PDF exhibiting this issue.
Comment 2 Carlos Garcia Campos 2013-07-18 08:39:45 UTC
Thanks for the patch. It doesn't apply to current git master, so I've adapted it and pushed.

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.