[cairo] Path length

Bryce Harrington bryce at osg.samsung.com
Tue Mar 24 10:45:58 PDT 2015


On Tue, Mar 24, 2015 at 05:09:50PM +0000, Stuart Axon wrote:
> Is the best way to get the length of a cairo path to call cairo_copy_path_flat and sum the lengths of the LINE_TOs contained inside ?
> I've been looking at arc lengths and it seems it can get complex, any chance of cairo providing cairo_path_length in future, or should I be looking at something like 2geom for this sort of thing ?
>  S++

I haven't seen anyone making plans to implement that, so 2geom might be
your best choice right now.  That said, I imagine patches to add that to
cairo would be entertained if the use case for it is strong enough.

Bryce


More information about the cairo mailing list