For what I was doing, I actually want the text to warp, so that's all to the good.<br><br>The remaining challenge is warping text along b-splines or beziers. You'll note that in the warpedtext.py example, the paths that the text is warped along are simple little curves - a spiral and a circle. I want to warp text along a spline, and so need to parametrize it by arclength, which is not completely trivial, and generate a normal to the spline. I've found a couple useful references in this regard, but if anyone knows of some existing code that plays nice with cairo already, it would be greatly appreciated.<br>
<br>Cheers,<br><br>Kevin<br><br><div class="gmail_quote">On Tue, Nov 25, 2008 at 3:34 AM, Dirk Schönberger <span dir="ltr"><<a href="mailto:dirk.schoenberger@sz-online.de">dirk.schoenberger@sz-online.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
> Pycairo comes with the example examples/warpedtext.py which draws text<br>
> along a path.<br>
><br>
<br>
</div>The example looks interesting.<br>
The only problem I see is that this method warps the actual glyphs.<br>
In a pure text on path I think the glyphs should be only rotated,<br>
transformed or scaled, while the actual "point data" (outlines) are not<br>
changed.<br>
<br>
Regards<br>
Dirk<br>
<br>
_______________________________________________<br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
<a href="http://lists.cairographics.org/mailman/listinfo/cairo" target="_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a><br>
</blockquote></div><br>