Auto font size, as big as it can be while still fitting whole message

i know i can have a dynamic text field automatically change its size to fit the text, but can i automatically change the font size so that the entire message fits as big as possible in a predefined rectangle?