Shape borders not (alpha) masked by cairo backend
- I'm observing with the "cairo" backend that a shape's "border" is not masked by its "alpha mask" (however the shape's "fill" is masked).
- This visual bug does not occur with the "splash" backend or other pdf viewers (such as Firefox).
- I've attached a pdf of a rectangle with a yellow fill and a blue border alpha masked by a holed rectangle. With the "cairo" backend the blue border of the masked rectangle extends past its mask but the yellow fill does not. With the "splash" backend and other pdf viewers such as
firefox
neither the border nor the fill extend past its mask. This pdf was created using R's pdf()
function (source: https://github.com/coolbutuseless/ggpattern/issues/70#issuecomment-1015560011). One of pdf()
's authors looked at the pdf and said the pdf output looked fine and this is probably a pdf viewer bug.
- This bug still appeared when I compiled and used
poppler-22.01.0
(although I didn't try to manually upgrade any Cairo headers on my Ubuntu 20.04 system before compiling).
mask_bug.pdf