Text on a Shape

Background

SVG has had Text on a path since the beginning. We have been requested to extend this to allow text on a shape. This avoids the need to convert shapes to paths prior to using them with <textPath>.

Typical uses:

Originally, Inkscape drew circles and ellipses using paths, now that Inkscape uses the circle and ellipse elements, people are asking why can't you put text on circles and ellipses?

Requirements

The major requirement for how SVG shapes should be converted to paths has been solved in the discussion of markers on shapes:

All around the mulberry bush. The monkey chased the weasel.

Text on a circle, starting at the nominal position.

Text at the top.

Text on a circle, with startOffset="75%" and text-anchor="middle".

Text at the top.

Text on a circle, with startOffset="50%" and text-anchor="middle", after rotating path 90 degrees.

All around the mulberry bush. The monkey chased the weasel.

Text on a rounded rectangle, starting at the nominal position (determined by marker placement rules).

Challenges