Posts: 775
Joined: Aug 2009
Reputation:
178
roidy
Posting Freak
Posts: 775
As the title says how do I return the length of a string.
I have a fixed size label that I want to use a different font size for depending on the length of the string that will be displayed.
Thanks
Posts: 17,937
Joined: Aug 2007
Reputation:
656
Hitcher
Team-Kodi Member
Posts: 17,937
Not possible unless you can make a script to do it.
Posts: 775
Joined: Aug 2009
Reputation:
178
roidy
Posting Freak
Posts: 775
Thanks, that actually works better than relying on the string length, as two different strings with the same character length could actually be different sizes depending on the proportional size of the characters.
Posts: 17,937
Joined: Aug 2007
Reputation:
656
Hitcher
Team-Kodi Member
Posts: 17,937
That's one word not a string (more than one word) so it won't wrap to another line.