Replies: 1 comment 1 reply
-
Hmm... the caret data should include info for leading/trailing spaces. I think you could just ask for the selection rect for that particular whitespace character, or for the whole string if you want the total word width. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! I'm using troika-three-text for creating each word separately for animation purposes.
I've noticed it trims the text if it starts or ends with a space.
Is it possible to get the width of that space somehow? Is there any property I can use within
textRenderInfo
for that?AFAIK, using just the font size isn't 100% accurate.
I've also tried using the caret utility functions, but I don't really know how that could help.
Beta Was this translation helpful? Give feedback.
All reactions