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

IText letter-spacing support for SVG (revisit) #4879

Closed
brentcappello opened this issue Apr 1, 2018 · 3 comments
Closed

IText letter-spacing support for SVG (revisit) #4879

brentcappello opened this issue Apr 1, 2018 · 3 comments

Comments

@brentcappello
Copy link

SVG has the presentation attribute letter-spacing. It would be nice if we could easily access this while loading in an SVG. I think it would be beneficial to add access the attribute in the parsers attributeMap. CharSpacing works great great but ideally we still need to access the standard specification considering most the vector programs use this on SVG export. It looks like this was proposed in PR #3718 but never fully resolved. I dug around and couldn't find a complete solution. Perhaps, I missed it?

I tried working with the reviver to access the attribute but couldn't easily navigate my way to the letter-spacing presentation attribute. I also attempted parsing my way through the signature referenced in issue #899. I'm all ears if you have another solution to handle access to character spacing data coming from an outside SVG. Cheers.

@asturur
Copy link
Member

asturur commented Apr 1, 2018

i think i may have missed that that PR contained import more than export. Let me see if it works good i can add it back

@asturur
Copy link
Member

asturur commented Apr 1, 2018

#3718

i cleaned up the old PR so that we can give the correct attribution to who did the work

@asturur
Copy link
Member

asturur commented Apr 1, 2018

merged

@asturur asturur closed this as completed Apr 1, 2018
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