Lets assume I have programmatically created a circle
and some text
,
that I want to align along the circle.
I am able to do so usin
As @Paul LeBeau commented:
No there is no automatic way to do that. You have to position it yourself
Consider adding svg images to text using absolute positioning
Since any text in SVG is a vector object, it has absolute coordinates x, y
, as the first character of the word and the last.
Using this you can position an icon or any other vector image to the beginning or end of the text.
I put the icon in the
tag and position it at the end of the word using the tag
An example with a growing line on which text and an icon are located
One more example