[cairo] cairo reset

Vladimir Vukicevic vladimirv at gmail.com
Tue Sep 26 23:01:22 PDT 2006


On 9/26/06, Mike Emmel <mike.emmel at gmail.com> wrote:
> Except the cairo api right now has no way to determine it if there is
> a current point or not.
> I don't agree with you about it being broken. Read the SVG spec.
> http://www.w3.org/TR/SVG/paths.html

Why do you keep coming back to SVG?  Cairo is not a SVG renderer.  SVG
is uninteresting to large parts of the world who want a 2D API.

If you want a move_to(0,0) it's simple:

my_cairo_new_path(cairo_t *cr) {
    cairo_new_path (cr);
    cairo_move_to (cr, 0, 0);
}

and just use that everywhere.  Why complicate things?

   - Vlad


More information about the cairo mailing list