[cairo] Adding support for quadratic beziers

Chris Wilson chris at chris-wilson.co.uk
Wed Aug 8 16:21:07 PDT 2012

On Thu, 9 Aug 2012 04:23:51 +0530, Shriramana Sharma <samjnaa at gmail.com> wrote:
> I'm sure the people here know that a quadratic represented by the
> points (s, c, e) is identical to the cubic represented by (s,
> (s+2c)/3, (e+2c)/3, e) -- so I was wondering why isn't it available in
> Cairo? At least at a user level even if not in the underlying data
> (because I realize many/most backends don't implement a separate
> quadTo)?

This is exactly why it was decided that Cairo did not need to handle
quadratic bezeirs; users could simply specify a quadratical bezier using
a cubic form. That said we have a number of other convenience functions,
and could have easily hid that we only use cubic beziers internally.

Chris Wilson, Intel Open Source Technology Centre

More information about the cairo mailing list