[cairo] Length of bezier curve

Bill Spitzak spitzak at gmail.com
Thu Jan 4 19:44:57 UTC 2018


See also the function splitCubicAtT in the same code, this may be a
better approach.

On Thu, Jan 4, 2018 at 7:49 AM, Behdad Esfahbod <behdad at cs.toronto.edu> wrote:
> 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/
>
> --
> cairo mailing list
> cairo at cairographics.org
> https://lists.cairographics.org/mailman/listinfo/cairo


More information about the cairo mailing list