Text always offset vertically in any widget

I always get at least some vertical offset with all my texts. The issue does not come from the font, and happens in many situations, even with a basic text in a button setup.
In the picture the font size is 60, padding and margin at 0 everywhere, and the font is default Roboto.
Any help would be welcome!

Version: 5.4.4-35576357+++UE5+Release-5.4
Platform: Windows 10 (22H2) (x86_64)

1 Like

It has always been like this and will most likely remain so, probably by design for a bunch of reasons. To shift text vertically, use positive/negative top/bottom padding to nudge it in its container.

Note the system must handle other locales where diacritics make things somewhat spicy.


It has always bothered me, too. :innocent:

1 Like

Thanks for this quick and clear answer!
I guess I will just add 2px padding to all my texts then :man_shrugging:

You could consider wrapping text + border in a User Widget, nudge it once. Expose Instance Editable variables and use the custom text widget in place of the native text block. This also comes with numerous other benefits - especially maintenance and scalability.

Your mileage may vary, ofc. Depends on what you’re up to.

Good luck!

1 Like