<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [PATCH] Arthur backend renders highlight annotations wrongly"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102036">102036</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[PATCH] Arthur backend renders highlight annotations wrongly
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>arthur backend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>oliver.sander@tu-dresden.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=133245" name="attach_133245" title="Patch that implements ArthurOutputDev::updateBlendMode">attachment 133245</a> <a href="attachment.cgi?id=133245&action=edit" title="Patch that implements ArthurOutputDev::updateBlendMode">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=102036&attachment=133245'>[review]</a>
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

  <a href="https://lists.freedesktop.org/archives/poppler/2013-June/010370.html">https://lists.freedesktop.org/archives/poppler/2013-June/010370.html</a>

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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>