[cairo] render text along path

Behdad Esfahbod behdad at behdad.org
Mon Nov 24 11:46:54 PST 2008


Kevin Atkinson wrote:
> Apologies if this has come up before (as I suspect it has).  I need to
> be able to render text along a path, in the style of the inkscape "Put
> on Path" function. 
> 
> I've been spelunking through the vast and sprawling inkscape code for an
> hour or so, and I haven't been able to figure this one out, so any
> advice would be enormously appreciated.
> 
> I'm using pycairo, though any info pertaining to the C api are
> gratefully accepted as well.

Pango distribution has a an example of how to do such a thing with pangocairo.
 The documented code is here:

  http://svn.gnome.org/viewvc/pango/trunk/examples/cairotwisted.c?view=markup

Hope that helps,

behdad

> Thanks,
> 
> Kevin



More information about the cairo mailing list