Greetings,
I'm trying to make a label's textsize automatically reduce as the text.length increases. As the user types, the first words should be about the same height as the label. When the text has filled the first line, the textsize should be reduced to about half the label's height so that there are 2 lines of text. When a third line is needed, the textsize should be reduced to about a third of the label's height, and so on until 4-5 lines of text have been typed. I don't need to worry about more than 4-5 lines of text.
I've tried to using "su.MeasureMultilineTextHeight" but have not found it to do what I need.
Any ideas about how to accomplish this functionality?
I'm trying to make a label's textsize automatically reduce as the text.length increases. As the user types, the first words should be about the same height as the label. When the text has filled the first line, the textsize should be reduced to about half the label's height so that there are 2 lines of text. When a third line is needed, the textsize should be reduced to about a third of the label's height, and so on until 4-5 lines of text have been typed. I don't need to worry about more than 4-5 lines of text.
I've tried to using "su.MeasureMultilineTextHeight" but have not found it to do what I need.
Any ideas about how to accomplish this functionality?