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

Text on Paths #152

Open
c-murray opened this issue Sep 10, 2020 · 4 comments
Open

Text on Paths #152

c-murray opened this issue Sep 10, 2020 · 4 comments
Assignees
Labels
difficulty:hard enhancement Hacktoberfest help wanted Help with creating a proper test-case, looking up the spec, or creating a pull request.

Comments

@c-murray
Copy link

c-murray commented Sep 10, 2020

Describe the bug
In the SVG I'm expecting text to follow the assigned path, in the playground the browser preview works properly. In the downloaded pdf the text is not located on the path and is instead at the top of the document.

To Reproduce
See this playground.

Expected behavior
I would have expected the PDF to look like it does in the browser, with the text centered along the path.
Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version 85

Additional context
Add any other context about the problem here.

@HackbrettXXX
Copy link
Member

Yes, text paths are not supported. See also #82. We would be very happy about a pull request, though ;)

@HackbrettXXX HackbrettXXX added enhancement help wanted Help with creating a proper test-case, looking up the spec, or creating a pull request. labels Sep 11, 2020
@HackbrettXXX HackbrettXXX changed the title Text on Path shows properly in browser, not in pdf Text on Paths Sep 23, 2020
@HackbrettXXX
Copy link
Member

Specification reference: https://www.w3.org/TR/SVG2/text.html#TextLayoutPath

For an implementation we might "steal" some code from Canvg.

@listopadiya
Copy link
Contributor

Seems to be challenging but interesting task, I can take it if you don't mind.

@HackbrettXXX
Copy link
Member

Sure, go ahead ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty:hard enhancement Hacktoberfest help wanted Help with creating a proper test-case, looking up the spec, or creating a pull request.
Projects
None yet
Development

No branches or pull requests

3 participants