# DrawText - Font scaling issue

**URL:** <https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001>\
**Category:** UI\
**Tags:** font, text, unreal-engine, scaling, question\
**Created:** [November 3, 2014, 8:13am UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001 "2014-11-03T08:13:41Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [November 3, 2014, 8:13am UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/1 "2014-11-03T08:13:41Z")

</div>

I am using DrawText (within a BP\_HUD) to display text on screen.  
I would like to display the text at different sizes but this presents a problem.

If I import the font at pt:16 it looks fine, but I cannot scale it up as it becomes blurred.  
If I import the font at pt:72 it looks fine but is very big. If I scale it down it looks blurred/distorted.

Is there a way to display text correctly at any size without having to import the font multiple times at different pt sizes?

I have looked at the font details section but don’t know if anything in there can help.

 ![19845-fontproblem.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/0/950d181fd77aa7aa81897be77eae392f59bd08ab.jpeg)

 ![19846-fontdetails.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/2/e727481886725cc93862949f2a0d786a75e45a2d.jpeg)

---

<div class="post-metadata">

**Author:** ![wmbuRn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wmbuRn](https://forums.unrealengine.com/u/wmbuRn)\
**Post date:** [November 3, 2014, 8:46am UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/2 "2014-11-03T08:46:38Z")

</div>

1. Dont use arial?

2. Check for “kerning” inside font editor. Kerning is spacing between 2 characters

OR

1. Use font size between 16 and 72?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [November 3, 2014, 9:38am UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/3 "2014-11-03T09:38:58Z")

</div>

_“Dont use arial?”_

The font type makes no difference, all fonts are either blurred or distored.  
Some are worse than others but still noticable.

_“Check for “kerning” inside font editor. Kerning is spacing between 2 characters”_

Makes no difference. The issue is the character pixellation and not the spacing in between characters.

_“Use font size between 16 and 72?”_

Originally, I was using pt 36 as a median compromise as the artfacts are slighltly reduced, but there is still either blur or distortion if I try to scale up or down.

I suspect the issue is related to the act of resizing the baked font-to-texture image created after importing a font.

Unless UE staff know otherwise, think the only real solution is to import the actual font pt size required for display and never scale it.  
This does mean having font duplicates at different sizes but can’t see another way to keep text crisp.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [November 3, 2014, 11:21am UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/4 "2014-11-03T11:21:24Z")

</div>

Also,

Could UE staff tell me the name of the default font (ttf?) used for DrawText when no font asset is specified?

It doesn’t seem to look like any of the fonts found in:

C:/Program Files/Unreal Engine/4.5/Engine/Content/Slate/Fonts

---

<div class="post-metadata">

**Author:** ![Jonathan\_Dorman\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jonathan\_Dorman\_1](https://forums.unrealengine.com/u/Jonathan_Dorman_1)\
**Post date:** [November 7, 2014, 11:16pm UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/5 "2014-11-07T23:16:14Z")

</div>

Hey ash22,

This is a known issue and we have it fixed internally (and on the bleeding-edge GitHub build). We’ll be including it in a future release. Thanks for your report!

As for the earlier question, you should always import text in the large form and then resize down to the appropriate size.

Regards,

Jonathan

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [November 8, 2014, 6:32am UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/6 "2014-11-08T06:32:41Z")

</div>

Thanks. I look forward to the fixed version.

Could you tell me the name of the default font used for DrawText when no font asset is specified?

---

<div class="post-metadata">

**Author:** ![Jonathan\_Dorman\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jonathan\_Dorman\_1](https://forums.unrealengine.com/u/Jonathan_Dorman_1)\
**Post date:** [November 10, 2014, 4:46pm UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/7 "2014-11-10T16:46:37Z")

</div>

Have you checked the fonts in C:/Program Files/Unreal Engine/4.5/Engine/Content/EngineFonts ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [November 10, 2014, 5:56pm UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/8 "2014-11-10T17:56:39Z")

</div>

Aaah thanks, it is called _SmallFont.uasset / TinyFont.uasset_.

Unfortunately (as the names imply) they are indeed small/tiny and there is no corresponding ttf so a bigger font size (pt=72) can be created ☹

Let me know if I can have the ttf.

(I like the style/form and ‘courier new’ isn’t quite the same).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [December 13, 2014, 10:20am UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/9 "2014-12-13T10:20:38Z")

</div>

Can I assume this issue hasn’t been fixed yet?  
I just checked UE4.6 and scaled text is still blurred.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Dorman\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jonathan\_Dorman\_1](https://forums.unrealengine.com/u/Jonathan_Dorman_1)\
**Post date:** [December 15, 2014, 4:20pm UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/10 "2014-12-15T16:20:29Z")

</div>

The bug was fixed on our internal build when I checked. It may not have been ready and fully tested in time for 4.6.

Just to be sure: This is with downscaling, right? Upscaling (from a small font) will always be blurred - that’s not fixable.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [December 15, 2014, 6:18pm UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/11 "2014-12-15T18:18:31Z")

</div>

_“This is with downscaling, right?”_

Yes. (I now use max font size 72 as recommended).

However, at pt72, scaling the font down to 0.25 still looks pretty gnarly.

I thought I could have default font size of 72 and scale down to any size whilst maintaining clarity. If this is not possible I suppose I could have duplicate fonts in several sizes but I was trying to avoid that redundancy if possible.

Let me know if you think pt72 at scale:0.25 should look like it does in the screenshot.

![24142-scaledown.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/c/b0ca7637436bbccd87d1765ece2238270d5a17d4.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [December 15, 2014, 6:32pm UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/12 "2014-12-15T18:32:47Z")

</div>

Btw, when **Font Cache Type** is set to RUNTIME the _Legacy Font Size_ property allows the font to scale beautifully at any size, big or small.

This is exactly what I want but that property is in the font dialog.  
As this setting is called ‘RUNTIME’ does that mean it can be also be changed from within a Blueprint?

---

<div class="post-metadata">

**Author:** ![Jonathan\_Dorman\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jonathan\_Dorman\_1](https://forums.unrealengine.com/u/Jonathan_Dorman_1)\
**Post date:** [December 15, 2014, 7:39pm UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/13 "2014-12-15T19:39:15Z")

</div>

The [documentation on Fonts](https://docs.unrealengine.com/latest/INT/Engine/UMG/UserGuide/Fonts/index.html) says that RUNTIME-type caching is a property of a font that you can change from the Font Editor, but it doesn’t mention blueprint accessibility (or any implication that you can change the setting at runtime). Is there a reason you’d need to set it at runtime?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [December 16, 2014, 8:54am UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/14 "2014-12-16T08:54:16Z")

</div>

_“Is there a reason you’d need to set it at runtime?”_

Scaling the RUNTIME font in the Font Editor (whether it be pt.7 or pt.72) does a much better job of preserving the font form/clarity than scaling an OFFLINE font in the DrawText node, which gets distorted as you can see from the screenshot above (though you did say that it _may_ already be fixed but didn’t make it into the 4.6 release).

Nonetheless, if the RUNTIME font size could also be changed using the DrawText-[scale] parameter and scale text as nicely as it does in the font editor then it would solve all the problems.

It is possibe, however, that RUNTIME fonts are ‘supposed’ to scale just like OFFLINE fonts when used with DrawText. (It may simply be broken?).

See my [bug report.](https://answers.unrealengine.com/questions/146803/ue46-drawtext-scale-option-broken.html)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dcadbc481](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dcadbc481](https://forums.unrealengine.com/u/anonymous_user_dcadbc481)\
**Post date:** [December 16, 2014, 9:21am UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/15 "2014-12-16T09:21:29Z")

</div>

Hello ash22,

Here you may find default fonts specified to your project

 ![24196-fonts1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/e/c3e667abffac36f47009a82aae332d985b0017d7.png)

You may find them in content browser here

 ![24197-fonts2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/e/cbe6ccc9ec9fd969b094e72e0440f68571ede4c9.png)

Best wishes,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [January 4, 2015, 11:46am UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/16 "2015-01-04T11:46:26Z")

</div>

I just noticed that it does appear to be a soft bug.

In 4.6, if I create an Arial font in size pt24 it is:  
(a) not crisp as it was in 4.5  
(b) is slightly clipped at the bottom which was not the case in 4.5.

If I import the same sized font I previously created (and saved) in 4.5 it is looks ok. So, something about creating new offline fonts in 4.6 is broken.  
Hopefully it will be fixed in 4.7 as I don’t want to reinstall 4.5 purely for font creation.

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [February 23, 2015, 10:54am UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/17 "2015-02-23T10:54:18Z")

</div>

Scaling of runtime cached fonts in Canvas wasn’t hooked up for 4.6, but it should be in for 4.7 (I’ll double check this).

I should point out that scaling in Canvas just scales the rendered glyph texture (which produces poorer results than changing the font size - it’s okay for quick animations though).

I think a good idea here might be to expose the font size to `DrawText` so that you can override it (you can do this when using C++, so it makes sense to be able to do it via Blueprints too).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3f9d2f94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3f9d2f94](https://forums.unrealengine.com/u/anonymous_user_3f9d2f94)\
**Post date:** [July 1, 2015, 5:18am UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/18 "2015-07-01T05:18:08Z")

</div>

Was this resolved in 4.7?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [July 1, 2015, 5:46am UTC](https://forums.unrealengine.com/t/drawtext-font-scaling-issue/298001/19 "2015-07-01T05:46:29Z")

</div>

no, same in 4.7 and 4.8.
