Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How I can create path for mltline text? #54

Closed
yevhenii-kas-oppizi opened this issue Nov 26, 2021 · 1 comment
Closed

How I can create path for mltline text? #54

yevhenii-kas-oppizi opened this issue Nov 26, 2021 · 1 comment

Comments

@yevhenii-kas-oppizi
Copy link

yevhenii-kas-oppizi commented Nov 26, 2021

How I can create path for multiline text, like below?

<svg width="200" height="200"
    xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
 <defs>
  <!-- define lines for text lies on -->
  <path id="path1" d="M10,30 H190 M10,60 H190 M10,90 H190 M10,120 H190"></path>
 </defs>
 <use xlink:href="#path1" x="0" y="35" stroke="blue" stroke-width="1" />
 <text transform="translate(0,35)" fill="red" font-size="20">
  <textPath xlink:href="#path1">This is a long long long text ......</textPath>
 </text>
</svg>
@puzrin
Copy link
Member

puzrin commented Nov 26, 2021

This question is out of scope. Package work with content, extracted from d attr of <path>. How to extract and what to do with result is left to user.

@puzrin puzrin closed this as completed Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants