Resize font in textarea

Hi,
I have a text area and the text is read from an xml file. I want the text to fill the text area in the largest font possible. In other words if there are only 2 words the font size will be large but if there are say 20 words then it would be alot smaller,
Thanks,
Richard