[cairo] some old problems still in latest snapshot
Theo Veenker
T.J.G.Veenker at uu.nl
Mon Oct 19 02:11:50 PDT 2009
Hi,
I just tried cairo 1.9.4 + pixman 0.16.2 to see whether some of the problems
I ran into before had been solved.
Referring to this message:
http://lists.cairographics.org/archives/cairo/2008-August/014922.html
- The svg backend still does CAIRO_EXTEND_REPEAT when CAIRO_EXTEND_NONE or
CAIRO_EXTEND_PAD selected.
- The problem with xlib backend described in the above message (filling a
rotated rectangle with an image pattern) is also still present. See
attached results for different angles.
I used the test programs attached in that message.
Also calculating stroke extents doesn't yet work for rotated paths. The
following gives wrong stroke extents for non-zero angles.
cairo_translate()
cairo_scale()
cairo_rotate()
cairo_move_to()
cairo_line_to()
cairo_set_source()
cairo_set_line_width()
cairo_stroke_extents()
cairo_stroke()
Behdad said in http://lists.cairographics.org/archives/cairo/2008-May/014208.html
in reply to this my earlier report of this problem that he was thinking about a
different implementation to calculate stroke/path extents. Is this still the plan?
I do hope so. I couldn't find this on the buglist.
My workaround is to calculate the extents like below, but this only works
if path scaling is 1. If scaling is != 1 then the extents don't quite match
the ink.
cairo_save()
cairo_translate()
cairo_scale()
cairo_rotate()
cairo_move_to()
cairo_line_to()
cairo_restore()
cairo_set_line_width()
cairo_stroke_extents()
Thanks,
Theo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: angle0.png
Type: image/png
Size: 16682 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20091019/5292098f/attachment-0004.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: angle15.png
Type: image/png
Size: 24829 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20091019/5292098f/attachment-0005.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: angle36.png
Type: image/png
Size: 24547 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20091019/5292098f/attachment-0006.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: angle37.png
Type: image/png
Size: 15882 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20091019/5292098f/attachment-0007.png
More information about the cairo
mailing list