[quote author=bitwes link=topic=15633.msg16820#msg16820 date=1466293912]You might be able to hack something together using the [tt]is_clipping[/tt] method. You could check to see if it is clipping then loop through the text, removing a character until [tt]is_clipping[/tt] returns false.You could also use a fixed width font and just count the characters, but Courier doesn't look as cool as Comic Sans.Other languages have this (I've used a similar feature in Objective C before), so it's possible. In my very brief googling I didn't see any posts covering the logic, only instructions on how to use methods that did it for you.[/quote]Unfortunately I think the [tt]is_clipping[/tt] method (if you mean [tt]is_clipping_text[/tt], which is all I could find) returns whether or not you [i]would[/i] clip text if it exceeded the box size, rather than if the current text is actually clipping. (I did try to implement the hacky solution, but it didn't work due to this.)