[cairo] Bug in PDF output with independent path/pen transformations

Carl Worth cworth at cworth.org
Tue Oct 30 17:32:16 PDT 2007

I just wrote a new degenerate-pen test case for the swfdec-crashing bug
that Benjamin Otte found months ago. I've fixed the original bug, but
a new one has shown up.

The test case strokes three rectangles, and each time transforms the
pen dramatically just before stroking. The first time it compresses
the pen to a vertical line, then to a horizontal line, and finally to
a line at a 45-degree angle.

The test can be viewed here:


and the desired result as a png here:


This test accidentally exposed a new bug in the PDF backend. The
result I'm getting is as follows:


Both acroread and poppler agree that that third rectangle is seriously
skewed, but it really should be axis-aligned.

Adrian, care to work some magic to diagnose this one?

I was a bit surprised to find a bug here, since I had successfully
tested independent transformations of the path and pen here:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20071030/d947d66a/attachment.pgp 

More information about the cairo mailing list