Answer the question
In order to leave comments, you need to log in
How to make text horizontal textPath?
https://codepen.io/kapysta-xxl/pen/MWrgWGg
Does anyone have any ideas on how to make the text horizontal, the line can change, be at different angles. I've been struggling for several hours, I can't do it, I hope for your help.
Answer the question
In order to leave comments, you need to log in
<svg viewBox="0 0 500 500">
<path id="MyPath" fill="none" stroke="red"
d="M 10,10 L 150,100" />
<text rotate="330">
<textPath href="#MyPath" startOffset="50%">
<tspan dy="10 -5 -3 -3 -3">Quick</tspan>
</textPath>
</text>
</svg>
Crutch through the horizontal second path:
<svg viewBox="0 0 500 500">
<path id="MyPath" fill="none" stroke="red"
d="M 10,10 L 150,100" />
<path id="MyPath2" d="M 10,55 L 150,55" />
<text>
<textPath href="#MyPath2" startOffset="50%">
Quick
</textPath>
</text>
</svg>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question