[cairo] too long lines?

Andrea Canciani ranma42 at gmail.com
Wed Dec 15 04:12:32 PST 2010


On Wed, Dec 15, 2010 at 12:53 PM, Fried, Vojtech
<vojtech.fried at streamserve.com> wrote:
> Hi,
>
>
>
> I have a following pycairo sample and it seems to be that the black lines
> are too long. They cross the red rectangle (their bounding box) at the
> bottom corners. It is even more than one pixel outside the rectangle. See
> http://yfrog.com/f/6clonglinesp
>
> Am I doing anything wrong? (cairo 1.10, all surfaces I tried, both linux and
> windows)

The default line join is miter, you probably want the bevel line join.

See:
http://www.cairographics.org/manual/cairo-cairo-t.html#cairo-set-line-join

Andrea


More information about the cairo mailing list