[cairo] Length of bezier curve

Behdad Esfahbod behdad at cs.toronto.edu
Thu Jan 4 15:49:07 UTC 2018


See:
https://github.com/fonttools/fonttools/blob/master/Lib/fontTools/misc/bezierTools.py#L142

On Thu, Jan 4, 2018 at 5:08 AM, Plugin Everything <jameswhiffin at gmail.com>
wrote:

> Hi. I'm drawing a bezier curve and want to only stroke a portion of it,
> 50% for example. So I'm using cairo_set_dash to do that, but I need to know
> the length of the curve for that to work. Does anyone know how to calculate
> the length of the bezier curve? Thank you.
>
> --
> cairo mailing list
> cairo at cairographics.org
> https://lists.cairographics.org/mailman/listinfo/cairo
>



-- 
behdad
http://behdad.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20180104/c6f95861/attachment.html>


More information about the cairo mailing list