-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Add letter spacing support for svg #3718
Conversation
i did not even know letter-spacing was a SVG thing. I have to check the SVG export, but looks good overall |
i guess the itext code needs to be cleared from the actual charspacing code and left your one |
i think this has been solved with latest master. Anyway since the new text changes, the svg ouput must be handled differently |
@AvaelKross more than one year passed, but @brentcappello made me notice today that here there was some unmerged work. So i cleaned it up and merge it. |
* add letter spacing support for svg * fix letter spacing for Parser * Update itext.svg_export.js * Update text.class.js
This adds a support for letter spacing in exported svg files. Also I fixed the parser to set charSpacing according to letter-spacing css rule. I have no time to make sure test works, so please feel free to improve it. I tested it manually for iText, and it works like a charm and keeps positioning very accurately.