Summary: | [PATCH] Arthur backend renders highlight annotations wrongly | ||
---|---|---|---|
Product: | poppler | Reporter: | oliver.sander |
Component: | arthur backend | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | m.weghorn, oliver.sander |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Patch that implements ArthurOutputDev::updateBlendMode
Test document: a short text that is partially highlighted New test file Patch that implements ArthurOutputDev::updateBlendMode Patch that replaces the QPainter by a stack of QPainters Patch implementing rudimentary transparency group support |
Description
oliver.sander
2017-08-04 13:00:29 UTC
Created attachment 133246 [details]
Test document: a short text that is partially highlighted
If you want i can commit this, but honestly i don't have time to sink on ArthurOutputDev trying to help you Created attachment 134934 [details]
New test file
Updated the test file. For some reason I don't see a highlight at all any more in the old one.
Created attachment 135143 [details] [review] Patch that implements ArthurOutputDev::updateBlendMode Rebased the patch, and removed a stray debugging output. I finally figured out how to make Arthur render highlight annotations properly. (Thanks to Adrian for his advice---I should have listened earlier.) These annotations need support for transparency groups. My implementation comes as three separate patches: 1) The implementation of updateBlendMode. Please commit this, it is definitely needed. 2) A patch that replaces the single QPainter object by a stack of QPainters. That one is a bit invasive, that's why I'm submitting it separately. All references to the current painter are now m_painter.top() rather than simple m_painter. Having a getter method for that may be nice---I am undecided. 3) The actual implementations of {begin|end|paint}TransparenceGroup. These are short and rudimentary. Transparency groups can do much more than just highlights, but that has to wait until later. Thanks for your review. Created attachment 135144 [details] [review] Patch that replaces the QPainter by a stack of QPainters Created attachment 135145 [details] [review] Patch implementing rudimentary transparency group support 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.