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

Get boundary of each style applied to text #99

Open
AlexGanzer opened this issue Feb 2, 2018 · 1 comment
Open

Get boundary of each style applied to text #99

AlexGanzer opened this issue Feb 2, 2018 · 1 comment

Comments

@AlexGanzer
Copy link

Hello.

Thanks for this great tool.

I'm trying to parse a text layer and generate HTML. But I can`t find - how to get position styles in text?
For example
I have text:

[Test 1] [Test 2]

Test 1 has a green color
Test 2 has a red color

How can I get a boundary of each color?

For example:
For green color
Start 0 position in text
End 6 position in text

For red color
Start 8 position in text
End 13 position in text
Thanks

@AlexGanzer
Copy link
Author

Found an answer in PSD.js - meltingice/psd.js#70

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

1 participant