Fitting vtkTextActor within a bounding box

Hello everyone, I was looking for a method to fit a vtkTextActor within a rectangular box having a particular width and height without providing the font size of the Text. In other words, I am looking for a solution in which I provide the height and width of a rectangular box and the TextActor changes its properties in order to wrap itself within that rectangular area.

Thank You.