Filling a textField dynamically either by scale or font size.
Hello all,
I've been attempting to have text fill a textField width responsively. Here is my code:
while(textField.textWidth < textField.width)
{
tf.size += 1;
textField.setTextFormat(tf);
}
However, this causes the text to be huge! Even though the textWidth and width are similar, the text is huge and only shows one letter in the field. I've tried scaling with textField.scaleX, but then the textWidth doesn't change. Very confusing and any help would be greatly appreciated!
