Re: Text Along Path
Behdad Esfahbod <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
On 15-11-23 05:42 PM, Lawrence D'Oliveiro wrote: > On Mon, 23 Nov 2015 16:01:14 -0600, Behdad Esfahbod wrote: > >> On 15-11-23 04:00 PM, Behdad Esfahbod wrote: >> >>> If you'd rather transform the glyph outlines as well, I've put code >>> for that out here: >>> >>> http://mces.blogspot.ca/2008/11/text-on-path-with-cairo.html > >> https://github.com/gnome/pango/blob/master/examples/cairotwisted.c > > More elaborate than my example, that’s for sure. Did you look at doing > your own de Casteljau decomposition of Bézier curve segments, to give > more control over the error tolerances? > > Also if you use hypot(3) instead of sqrt(3), your two_points_distance > function could be done in one line. Both are valid points. I wrote this many years ago, and serves as proof of concept rather than fully fleshed out code. Cheers, b -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo