Re: Text Along Path

Lawrence D'Oliveiro <[email protected]>
Newsgroups gmane.comp.lib.cairo
Organization Geek Central
Message-ID <[email protected]>
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.

-- 
cairo mailing list
[email protected]
http://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.