[Poppler-bugs] [Bug 102036] New: [PATCH] Arthur backend renders highlight annotations wrongly
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Aug 4 13:00:29 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=102036
Bug ID: 102036
Summary: [PATCH] Arthur backend renders highlight annotations
wrongly
Product: poppler
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: arthur backend
Assignee: poppler-bugs at lists.freedesktop.org
Reporter: oliver.sander at tu-dresden.de
Created attachment 133245
--> https://bugs.freedesktop.org/attachment.cgi?id=133245&action=edit
Patch that implements ArthurOutputDev::updateBlendMode
The Arthur backend renders highlight annotations wrongly. The yellow
rectangles are simply rendered on top of the highlighted text, hiding that text
completely.
The obvious explanation was that the updateBlendMode method is not implemented
in ArthurOutputDev. I therefore prepared a patch that implements that method.
It is simple and self-contained.
Full disclosure: I actually took the implementation from the much larger patch
that Mihai Niculescu posted to the mailing list in
https://lists.freedesktop.org/archives/poppler/2013-June/010370.html
That's why the patch contains Mihai's name in the copyright list.
Only, it doesn't solve the problem: With it, the yellow rectangles still hide
the text. And I don't understand why this is. When the ArthurOutputDev::fill
method that draws the yellow rectangle is called, the blend mode is
gfxBlendNormal, which I suppose means "draw right on top of it". I need a hint
here. What is the mechanism that allows me to see the highlighted text through
the rectangle, if it isn't the blend mode? It doesn't seem to be opacity,
either.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20170804/a40fcb35/attachment.html>
More information about the Poppler-bugs
mailing list