[4.8] Textbox centering/wrapping not working anymore

With the latest 4.8 engine update we’ve found that all of our text boxes in the game have been changed that they no longer scale properly. With the help of a previous question here: UMG - Text alignment & scaling issue - UI - Unreal Engine Forums I was able to get them to scale as intended, but for the life of me I simply can’t get text centering and scaling in set bounds to work properly.

To illustrate here’s an example text made just recently from a new text box.:

As you can see the text box isn’t big enough despite the scale box being much larger than it. You should be able to repro it with just creating a new textbox and wrapping it with a scalebox with the settings below. Here are the settings for the scalebox:

Setting it to fill it now wraps the text properly, but centering now longer works:

It’s more than possible that some settings aren’t used as intented, but as of now I can’t find any documentation on how to get any text to center and wrap properly anymore even though all of these worked as intended in 4.7.

Hello TatuTeittinen,

After doing a bit of digging I found that this issue is a known issue (UE-17037). However, I have found a workaround that may be viable depending on your needs. I have found that you can prevent clipping by adding a bit of padding to the left and right sides of the text. I hope that this information helps.

Example:

In this example I have a font that was clipping the right side of the text (the top loop of the ‘k’) and so I added some padding to increase the size of the bounding box.

Make it a great day

Hey Rudy,

the workaround seems to be working well enough (still requires some fiddling when you want it to auto wrap and center properly, but it’s “shippable” if not perfect), thank you!

For those that have ended up here, here’s the original report if it’s any use: https://answers.unrealengine.com/questions/242095/umg-errors-with-text-rendering.html

Cheers,
Tatu