I don't know that you can autofit the text using font size changes, but you can definitely fit the text object to the text using events.
You could try a hack solution, like:
Do while: Compare Text.TextWidth to Text.Width
and set font size: Text.FaceSize - 1
Until it fits.