meerk40t / svgelements

SVG Parsing for Elements, Paths, and other SVG Objects.
MIT License
133 stars 29 forks source link

svgelements does not process textPath #84

Open tatarize opened 3 years ago

tatarize commented 3 years ago

https://www.w3.org/TR/SVG/text.html#TextPathElement

SVG 2.0 extends this to applying a text path along a basic shape.

SVG can place text along a path defined either by a ‘path’ element or the path equivalent of a basic shape. This is specified by including text within a ‘textPath’ element that has either an ‘href’ attribute with an URL reference pointing to a ‘path’ element or basic shape, or by specifying a value for the ‘path’ attribute that specifies the path data directly.

Within svgelements there is not much that must be handled here. The text path object itself works like a text object but references a text object. Actual difficulties in rendering this would be largely left to the user.

The textPath to be useful needs normal vector information applied to paths.