How to debug can realize that the font size is automatically changed according to the size of the text box
If you are looking for the text to resize to suit the box size then this post should help
https://answers.unrealengine.com/questions/361771/view.html