[Degrafa] Text Along a Spline

Just wanted to give a sneak preview of my first project for Degrafa.  One of the things we hope to provide in a future release is the ability to path-deform text, both along Bezier curves and in the more general case, a variety of splines.  The algorithm requires an arc length parameterized curve, which includes the Singularity Beziers (quad and cubic), composite Bezier spline, and Catmull-Rom spline.

The following screen shot shows an example with a Catmull-Rom spline.  The default method for initial and terminal points leads to a bit of ‘pinching’ at each end of the spline, so this is not an ideal spline for such an application.  The algorithm works with any spline extending the Composite base class, so this happens to be one of the first test cases.

Text deformed along a Catmull-Rom spline
Text deformed along a Catmull-Rom spline

I’m temporarily drawing tangent and normal in order to verify the orientation.  There are still a lot of details to be worked out, but I wanted to give everyone a preview of just some of the things I’ll be doing for Degrafa.


9 thoughts on “[Degrafa] Text Along a Spline

  1. Amazing, perfect timing you have. I was looking at rendering text on curves myself yesterday. There’s a complete dearth of information about how to do it, and I’m surprised there aren’t libraries already out there. This is extremely useful work!

    For us non-declaritive folks, will this kind of stuff be accessible through as3 code too?

  2. JT – haven’t planned a TechNote for this as spare time is currently very limited. I hope the online demo will be easy for people to deconstruct – I am planning on beefing up the documentation to help with the deconstruction.


    – jim

Comments are closed.