Created attachment 81144 [details] PDF with closely spaced lines of text When multiple lines of text are selected, TextSelectionPainter will draw selections over each other, hiding the previous line with the selection background of the current line. Attached PDF has closely spaced lines of text to show this issue. This is easiest to see on the selections page of popper-glib-demo. Evince has its own issue which makes this a bit harder to see.
Created attachment 81145 [details] image of PDF as rendered by poppler-glib-demo Image of this PDF with the selection rendered by poppler-glib-demo.
Created attachment 81146 [details] [review] Draw glyphs after selection background Attached patch changes TextSelectionPainter so that glyphs are drawn only after the entire background is drawn.
Comment on attachment 81146 [details] [review] Draw glyphs after selection background Review of attachment 81146 [details] [review]: ----------------------------------------------------------------- This is a great idea. Pushed to git master, thank you!
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.