Is it possible to detect text overrun in a label?

Godot makes it very easy to choose various ways to deal with Text Overrun Behavior, e.g., Trim Nothing, Ellipsis, etc.

However, there is no option to decrease the font size to remedy the overrun itself.

Is there a signal or some manner of detecting that the text no longer fits a label so that the font can then be adjusted programmatically via label.add_theme_font_size_override("font_size", 35) or similar?

Detection of Overrun is the key here.

Thank you all.

1 Like

In case someone else needs something like this, there is an asset in the library called GodotLabelFontAutoSizer that addresses the issue.