# UMG - Custom Fonts?

**URL:** <https://forums.unrealengine.com/t/umg-custom-fonts/291631>\
**Category:** Rendering\
**Tags:** font, unreal-engine, Blueprint, question, UMG\
**Created:** [August 21, 2014, 7:52pm UTC](https://forums.unrealengine.com/t/umg-custom-fonts/291631 "2014-08-21T19:52:32Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenomica](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kenomica](https://forums.unrealengine.com/u/Kenomica)\
**Post date:** [August 21, 2014, 7:52pm UTC](https://forums.unrealengine.com/t/umg-custom-fonts/291631/1 "2014-08-21T19:52:32Z")

</div>

using UMG, I’ve noticed there is an option for fonts, but it isn’t using Windows fonts or imported font assets. How do you go about using a custom font with UMG?

Also, a second question, how can I snap a text block to an exact location? for example, I have a title menu and a settings screen, both containing the title of the game, but currently when switching screens, the title text moves slightly as it is placed by hand.

Thanks.

---

<div class="post-metadata">

**Author:** ![Motanum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Motanum](https://forums.unrealengine.com/u/Motanum)\
**Post date:** [August 21, 2014, 7:59pm UTC](https://forums.unrealengine.com/t/umg-custom-fonts/291631/2 "2014-08-21T19:59:58Z")

</div>

For the second part of the question. Be sure to obtain the size of the screen. This way, you can alright by percentages/fractions.

The trick to put stuff in the middle, is that the the ‘Draw Text’ material, will be drawn from left to right always. To solve this use the ‘Get Text Size’ to get the size in pixels, then you can compensate in your size Y and Size X of ‘Draw Text’.

So, to reitarate. First, get the screen size.

[http://puu.sh/b2bKu/3a4cefe84c.jpg](http://puu.sh/b2bKu/3a4cefe84c.jpg)

Next, get the size of what you are drawing.

[http://puu.sh/b2bRR/37d05165dc.jpg](http://puu.sh/b2bRR/37d05165dc.jpg)

Finally, do the math’s so that the text aligns properly.

[http://puu.sh/b2bVI/794e8e0de2.jpg](http://puu.sh/b2bVI/794e8e0de2.jpg)

---

<div class="post-metadata">

**Author:** ![Mosel3y](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mosel3y](https://forums.unrealengine.com/u/Mosel3y)\
**Post date:** [August 21, 2014, 8:01pm UTC](https://forums.unrealengine.com/t/umg-custom-fonts/291631/3 "2014-08-21T20:01:10Z")

</div>

Hi,  
Fonts are found in “Unreal Engine/4.4/Engine/Content/Slate/Fonts”.

Copy whatever fonts you want in there.

To change fonts in a text box, just put for example, “Slate/Fonts/cour.ttf” in the font name setting (after copying the font into that folder).

That’s how I do it anyway.

As far as I know, there is no way to snap right now, but you can set the layout data manually in the details tab.

---

<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:** [August 21, 2014, 8:07pm UTC](https://forums.unrealengine.com/t/umg-custom-fonts/291631/4 "2014-08-21T20:07:57Z")

</div>

If you just place them into your games Content/Slate/Fonts/ folder they will be cooked, and you can set their path in the UMG editor to just Slate/Fonts/myfont.ttf. No need to put them into Engine content.

---

<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:** [August 21, 2014, 8:10pm UTC](https://forums.unrealengine.com/t/umg-custom-fonts/291631/5 "2014-08-21T20:10:16Z")

</div>

That’s the method you should use for AHUD, not UMG. For UMG, you can place the text object on a canvas, and then anchor it to the top center of the screen and set the horizontal offset to be 0. In order to then align the object at its center at that anchor point, change the Alignment to 0.5, 0.5.

Cheers,  
Nick

---

<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:** [August 21, 2014, 8:12pm UTC](https://forums.unrealengine.com/t/umg-custom-fonts/291631/6 "2014-08-21T20:12:38Z")

</div>

Actually instead of placing it directly onto the canvas, place a Horizontal box down in the canvas first, that contains the text, then you don’t have to worry about sizing the text box. The horizontal box will let you center it easy.

---

<div class="post-metadata">

**Author:** ![Kenomica](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kenomica](https://forums.unrealengine.com/u/Kenomica)\
**Post date:** [August 21, 2014, 9:52pm UTC](https://forums.unrealengine.com/t/umg-custom-fonts/291631/7 "2014-08-21T21:52:59Z")

</div>

That did it, thanks. great work on UMG, by the way. it’s definitely fun to use and is quite powerful even in experimental phase.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c66b90a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c66b90a1](https://forums.unrealengine.com/u/anonymous_user_c66b90a1)\
**Post date:** [October 30, 2014, 4:01pm UTC](https://forums.unrealengine.com/t/umg-custom-fonts/291631/8 "2014-10-30T16:01:19Z")

</div>

Hi. I added the font in the content foler, and that made the font work in the editor. But, it doesnt work in the standalone build (I get the default font instead). Please help.

---

<div class="post-metadata">

**Author:** ![abhishek17](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abhishek17](https://forums.unrealengine.com/u/abhishek17)\
**Post date:** [October 30, 2014, 4:03pm UTC](https://forums.unrealengine.com/t/umg-custom-fonts/291631/9 "2014-10-30T16:03:01Z")

</div>

I am having the same issue. Please look into it. Thanks.

---

<div class="post-metadata">

**Author:** ![abhishek17](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abhishek17](https://forums.unrealengine.com/u/abhishek17)\
**Post date:** [October 30, 2014, 4:15pm UTC](https://forums.unrealengine.com/t/umg-custom-fonts/291631/10 "2014-10-30T16:15:24Z")

</div>

Found the solution. The fonts need to be put in the Slate folder (inside content)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c66b90a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c66b90a1](https://forums.unrealengine.com/u/anonymous_user_c66b90a1)\
**Post date:** [October 30, 2014, 4:16pm UTC](https://forums.unrealengine.com/t/umg-custom-fonts/291631/11 "2014-10-30T16:16:43Z")

</div>

Thanks. That did it. Awesome.
