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

troika-three-text: Carets/selections don't respect letterSpacing #259

Open
lojjic opened this issue May 21, 2023 Discussed in #258 · 1 comment
Open

troika-three-text: Carets/selections don't respect letterSpacing #259

lojjic opened this issue May 21, 2023 Discussed in #258 · 1 comment

Comments

@lojjic
Copy link
Collaborator

lojjic commented May 21, 2023

Discussed in #258

Originally posted by m4rvr May 21, 2023
Hey! I'm manually getting the width of letters/words within the whole text, but once I add a letterSpacing, the size of the space literally never changes and always stays at the number of 9.27557373046875 (or very similar).

Letter spacing tests:
0.2 → 9.27557373046875
0 → 9.275566101074219
0.5 → 9.27557373046875

Is this intended, because without the space it's impossible to get the correct size?

Thanks!

@lojjic lojjic changed the title troika-three-text: Does getSelectionRects respect letterSpacing of spaces? troika-three-text: Carets/selections don't respect letterSpacing May 21, 2023
@lojjic
Copy link
Collaborator Author

lojjic commented May 21, 2023

image

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