[cairo] Text Along Path

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Mon Nov 23 15:42:31 PST 2015


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.



More information about the cairo mailing list