Shorten the string only if it's larger than texture size.
Merge pull request #1877 from matham/text-shorten

Shorten the string only if it's larger than texture size.