I'm trying to get evenly distributed points along the shape of a glyph. The FontSample shows how to iterate over the shape of a glyph. I've done something similar to the sample using Shape2d::iterate<>. Except the drawing logic is replaced with subdividing the segment into SUBDIV = 100 amount of points. However I have an issue when calcCubicBezierPos and calcQuadraticBezierPos are concerned.
I know this post is pretty old, but I was trying to do the same thing, and figured out what the problem with the snippet above is - the calcCubicBezierPos and calcQuadraticBezierPos functions need the previousPoint as first point in the input vector. Corrected sections below (using types of current cinder release):