[cairo] how do you draw an outline of a circle/ellipse

Bill Spitzak spitzak at gmail.com
Wed Nov 11 09:54:00 PST 2015

Changing Cairo to work the way you expect is actually a proposed addition,
called "line width locking" I think.

As you point out the current behaviour makes it impossible to draw an
ellipse using the arc commands where the line is the same thickness on all
sides, as well as being pretty unintuitive.

On Wed, Nov 11, 2015 at 12:46 AM, Lawrence D'Oliveiro <
ldo at geek-central.gen.nz> wrote:

> On Wed, 11 Nov 2015 01:32:23 -0700, Mark Olesen wrote:
> > I am unable to create an outline of a circle/ellipse.
> > cairo_stroke below fills instead of creating an outline.
> It is stroking. It’s just your line width is being scaled up by the
> transformation matrix in effect at the time of the stroke operation.
> <http://default-cube.deviantart.com/art/Line-Width-535218240>
> <https://github.com/ldo/qahirah_examples/blob/master/line_width>
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20151111/ad023201/attachment.html>

More information about the cairo mailing list