# TextRender doesn't load font correctly.

**URL:** <https://forums.unrealengine.com/t/textrender-doesnt-load-font-correctly/309239>\
**Category:** Community & Industry Discussion\
**Tags:** Render, noob, text, unreal-engine, question\
**Created:** [March 4, 2015, 9:47pm UTC](https://forums.unrealengine.com/t/textrender-doesnt-load-font-correctly/309239 "2015-03-04T21:47:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![railerswim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@railerswim](https://forums.unrealengine.com/u/railerswim)\
**Post date:** [March 4, 2015, 9:47pm UTC](https://forums.unrealengine.com/t/textrender-doesnt-load-font-correctly/309239/1 "2015-03-04T21:47:42Z")

</div>

So I’m trying to create a 3d text object. I have a custom font. The Text Render object doesn’t load any text in the font at all when I go to switch it. I have been researching this for hours and nothing has worked.

---

<div class="post-metadata">

**Author:** ![DG\_Gage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DG\_Gage](https://forums.unrealengine.com/u/DG_Gage)\
**Post date:** [March 5, 2015, 6:24am UTC](https://forums.unrealengine.com/t/textrender-doesnt-load-font-correctly/309239/2 "2015-03-05T06:24:48Z")

</div>

You need to make a font material. Here’s how:

- Import your font. Double click it to go to its editor.
- Change Font Cache Type to Offline.
- Expand Import Options, and set Height to 20, or whatever makes this happen: In the image, you want the row with the letter Z to be at the bottom of the first image square. Usually you’ll have extra symbols spilling into a second image. If you need those symbols, make a another font file with only those symbols, import it, and follow these instructions.
- Scroll down to check Use Distance Field Alpha
- Save. Under Asset, click Reimport. Save.
- Create a new material.
- Right click and create a FontSampleParameter node. Click it to see its details. Chose your font for Font.
- Create a LinearInterpolate node. Click to go to details. Set Const A to -90 and Const B to 90.
- Plug the top pin from your Font node into the Alpha of the Lerp node.
- Click the main node, the big guy with all the inputs, to go to its details. Set Blend Mode to Masked.
- Plug the result of your Lerp into Opacity Mask of the main node.
- Plug anything you want into Base Color of the main node. You can use a Constant3Vector for a simple color.

Now that you’ve done that, implementing it into a TextRender actor is easy.

- Go the details of the TextRender actor.
- Set Text Material to your new material.
- Set Font to the same font you used for your material.

Keep in mind that the very first step I mentioned, changing Font Cache Type to Offline, will make it so your font cannot be selected in UMG. You can make a duplicate of your font and set the Font Cache Type to Runtime to use it in UMG.

For ease of organization, I like to name one Font\_render and the other Font\_UMG.

---

<div class="post-metadata">

**Author:** ![railerswim](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@railerswim](https://forums.unrealengine.com/u/railerswim)\
**Post date:** [March 5, 2015, 10:17pm UTC](https://forums.unrealengine.com/t/textrender-doesnt-load-font-correctly/309239/3 "2015-03-05T22:17:15Z")

</div>

That worked! Thank you! Now I just need to edit the font because it’s cutting off some characters. Still thanks!

---

<div class="post-metadata">

**Author:** ![DG\_Gage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DG\_Gage](https://forums.unrealengine.com/u/DG_Gage)\
**Post date:** [March 5, 2015, 10:18pm UTC](https://forums.unrealengine.com/t/textrender-doesnt-load-font-correctly/309239/4 "2015-03-05T22:18:39Z")

</div>

Happy to save you the heartache! Btw if you make a comment, you have to re-accept the answer. This is definitely one we want others to be able to find easily

---

<div class="post-metadata">

**Author:** ![0vr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@0vr](https://forums.unrealengine.com/u/0vr)\
**Post date:** [February 22, 2016, 8:16pm UTC](https://forums.unrealengine.com/t/textrender-doesnt-load-font-correctly/309239/5 "2016-02-22T20:16:38Z")

</div>

“Plug the top pin from your Font node into the Alpha of the Lerp node.” ← this gives me an error saying “Coercion failed”

I can put in any of the individual channels (RGB) but not the top pin into the alpha of the lerp node. help me please?  
EDIT: I think you meant the bottom pin- the alpha of the font to the alpha of the lerp? but my letters are getting chopped up…

for anyone having the same problem: the reason the top pin can’t go through the lerp into the mask is that the mask wants a float and the top pin is a float3. So i added the red to the green and the result of that to the blue and just used that as the mask.

---

<div class="post-metadata">

**Author:** ![Rockseller](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rockseller](https://forums.unrealengine.com/u/Rockseller)\
**Post date:** [April 23, 2016, 4:26am UTC](https://forums.unrealengine.com/t/textrender-doesnt-load-font-correctly/309239/6 "2016-04-23T04:26:16Z")

</div>

@DG Gage WOOT you are the man, where did you learn that trick?
