Making resizable text boxes

Hi guys.

Is there a way in blender to create resizable text boxes so when i create some text, text itself will change font size based on the text box dimensions, so it fits text content inside of it. Something like this. Currently I can’t achieve this with standard text boxes in blender.