Closed nicloay closed 6 years ago
Hello @britzl
Please check following thread https://forum.defold.com/t/text-metrics-excludes-trailing-spaces-in-width-value-def-1761/1551
get_text_metrics does not count trailing space width, and because of that cursor position is wrong if you have any spaces at the end of the string.
get_text_metrics
Looks good! Could you please rebase on current master (which includes fixes for some reported issues)
I hope I made it right. Let me know if i need to create a fresh pool request just with changes.
Hello @britzl
Please check following thread https://forum.defold.com/t/text-metrics-excludes-trailing-spaces-in-width-value-def-1761/1551
get_text_metrics
does not count trailing space width, and because of that cursor position is wrong if you have any spaces at the end of the string.