[gl2ps] bug for opacity=0.5 and TextAsPath=1

Dan Lipsa dan.lipsa at kitware.com
Mon Dec 19 22:49:13 CET 2016


Hi all,
We have a merge request in VTK which includes a fix to gl2ps.

https://gitlab.kitware.com/vtk/vtk/merge_requests/2277

The test we use is:
https://gitlab.kitware.com/vtk/vtk/blob/6d51efa1f268b7cec5dc0ce1e195db4f1c812a23/Rendering/GL2PS/Testing/Cxx/TestGL2PSTextOpacity.cxx

If we set for text the opacity to 0.5 and TextAsPath to 1 we get an invalid
PDF (text_bad.pdf). After our fix we get an valid PDF (text.pdf). See
attached files.

Would you please review our changes and once approved include them in
future versions of gl2ps.
Changes to a2ps are listed as the last two files in the list of changes:

https://gitlab.kitware.com/vtk/vtk/merge_requests/2277/diffs


Thank you,

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gl2ps/attachments/20161219/e3bfb7f2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: text.pdf
Type: application/pdf
Size: 3188 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gl2ps/attachments/20161219/e3bfb7f2/attachment.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: text_bad.pdf
Type: application/pdf
Size: 3154 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gl2ps/attachments/20161219/e3bfb7f2/attachment-0001.pdf>