TextTest & Twirl in the samplecode have text & path examples respectively. Note that Twirl is doing some funky things with matrices, and only uses the path stuff to get & put the resultant lines, but that should give you an idea. Twirl.cpp's twirl_path() is what you want (there are two functions with the same name, so check them both)