Posts: 715
Joined: Aug 2009
Reputation:
165
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,632
Joined: Aug 2007
Reputation:
605
Hitcher
Team-Kodi Member
Posts: 17,632
Not possible unless you can make a script to do it.
Posts: 715
Joined: Aug 2009
Reputation:
165
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,632
Joined: Aug 2007
Reputation:
605
Hitcher
Team-Kodi Member
Posts: 17,632
That's one word not a string (more than one word) so it won't wrap to another line.