# Vertical alignment of fonts in UMG?

**URL:** <https://forums.unrealengine.com/t/vertical-alignment-of-fonts-in-umg/27458>\
**Category:** UI\
**Tags:** unreal-engine\
**Created:** [April 15, 2015, 4:32am UTC](https://forums.unrealengine.com/t/vertical-alignment-of-fonts-in-umg/27458 "2015-04-15T04:32:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![illYay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illYay](https://forums.unrealengine.com/u/illYay)\
**Post date:** [April 15, 2015, 4:32am UTC](https://forums.unrealengine.com/t/vertical-alignment-of-fonts-in-umg/27458/1 "2015-04-15T04:32:45Z")

</div>

I only see horizontal alignment of fonts. I need to align some text to the bottom of a rectangle in my UI. Is this not possible until a future release? If so maybe I can get in there and add this in?

---

<div class="post-metadata">

**Author:** ![NickDarnell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NickDarnell](https://forums.unrealengine.com/u/NickDarnell)\
**Post date:** [April 15, 2015, 2:18pm UTC](https://forums.unrealengine.com/t/vertical-alignment-of-fonts-in-umg/27458/2 "2015-04-15T14:18:31Z")

</div>

Place the text in another container that allows alignment at the bottom, something like an Overlay panel, or a Vertical Box.

---

<div class="post-metadata">

**Author:** ![illYay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illYay](https://forums.unrealengine.com/u/illYay)\
**Post date:** [April 15, 2015, 9:39pm UTC](https://forums.unrealengine.com/t/vertical-alignment-of-fonts-in-umg/27458/3 "2015-04-15T21:39:37Z")

</div>

Hmm, I actually ended up modifying the engine to add vertical justification. 🙂

I might do a pull request later but I still need to figure out how to make it show 3 buttons like it does for horizontal justification instead of a menu to select the enum.

---

<div class="post-metadata">

**Author:** ![NickDarnell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NickDarnell](https://forums.unrealengine.com/u/NickDarnell)\
**Post date:** [April 15, 2015, 10:27pm UTC](https://forums.unrealengine.com/t/vertical-alignment-of-fonts-in-umg/27458/4 "2015-04-15T22:27:15Z")

</div>

Engine\Source\Editor\UMGEditor\Private\Details\SWidgetDetailsView.cpp

search for, PropertyModule.RegisterCustomPropertyTypeLayout(TEXT(“ETextJustify”),

You’ll need to have a new property customization for whatever new enum type you added.

---

<div class="post-metadata">

**Author:** ![illYay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illYay](https://forums.unrealengine.com/u/illYay)\
**Post date:** [April 16, 2015, 6:49am UTC](https://forums.unrealengine.com/t/vertical-alignment-of-fonts-in-umg/27458/5 "2015-04-16T06:49:13Z")

</div>

Cool Thanks!

---

<div class="post-metadata">

**Author:** ![Joel\_pro2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joel\_pro2](https://forums.unrealengine.com/u/Joel_pro2)\
**Post date:** [June 7, 2017, 10:36am UTC](https://forums.unrealengine.com/t/vertical-alignment-of-fonts-in-umg/27458/6 "2017-06-07T10:36:20Z")

</div>

I think I came with an easy solution for this problem  
It’s not perfect but it works (at least for me)  
NOTE: This only works for vertical alignment, since there’s the option Justification that already aligns Horizontally

[ATTACH=CONFIG]Diference[/ATTACH]

Go to Appearance - Click in Arrow Show Advanced  
[ATTACH=CONFIG]Show Advanced[/ATTACH]

Expand Margin and pick nonsense high values for Top and Bottom  
[ATTACH=CONFIG]Margin[/ATTACH]

It will try to apply that margin (always unsuccessful) ending up in centring it
