Re: Length of bezier curve

Bill Spitzak <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAL-8oAhWQhdMyePde2YiDZpdPY3=QgKTc2C+TJ4v+-UmgZ12Sg@mail.gmail.com>
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 <[email protected]> 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 <[email protected]>
> 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
>> [email protected]
>> https://lists.cairographics.org/mailman/listinfo/cairo
>
>
>
>
> --
> behdad
> http://behdad.org/
>
> --
> cairo mailing list
> [email protected]
> https://lists.cairographics.org/mailman/listinfo/cairo
-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.