# Why is \*window size\* not \*screen DPI\* used for DPI calculations in Slate and UMG?

**URL:** <https://forums.unrealengine.com/t/why-is-window-size-not-screen-dpi-used-for-dpi-calculations-in-slate-and-umg/473623>\
**Category:** UI\
**Tags:** unreal-engine, slate, UI, Widget, question, dpi, UMG\
**Created:** [October 28, 2020, 9:21am UTC](https://forums.unrealengine.com/t/why-is-window-size-not-screen-dpi-used-for-dpi-calculations-in-slate-and-umg/473623 "2020-10-28T09:21:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![k\_a\_s\_s\_k\_a\_s\_s](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/k_a_s_s_k_a_s_s/32/555828_2.png) [@k\_a\_s\_s\_k\_a\_s\_s](https://forums.unrealengine.com/u/k_a_s_s_k_a_s_s)\
**Post date:** [October 28, 2020, 9:21am UTC](https://forums.unrealengine.com/t/why-is-window-size-not-screen-dpi-used-for-dpi-calculations-in-slate-and-umg/473623/1 "2020-10-28T09:21:01Z")

</div>

For desktop platforms in windowed mode, **the DPI scaling curve isn’t using the DPI of the screen itself** , which is dependant on screen resolution vs physical size of screen, **but rather treating window size changes as DPI changes**.

All other software I’ve used, as well as UI frameworks like Qt, use the former, which makes sense, as **DPI a is property of the screen - it’s constant for a given screen regardless of window size**. Unreal is the only software I see that does the latter. It seems counter-intuitive and goes against reasonable expectations. Using an application in windowed mode, you expect the elements to have the same size as full-screen, instead of scaling down. But also, using the same application on an actual high-DPI screen, you expect the elements there to be larger in pixels, and same in physical size.

So, if you have a regular-DPI (1.0) screen, and display Unreal in windowed mode smaller than full-screen, it’s treated as high-DPI. Therefore **in windowed mode, the elements on screen are scaled down, making text harder to read, buttons harder to press** etc. On a high-DPI screen, using windowed mode makes the DPI even higher, so the problem persists on any screen of any DPI.

So, for Unreal, **the only solution is setting the DPI curve to a constant 1** to have elements not change size. That solves the strange behaviour in resizing the window, **but that also means the application becomes DPI unaware, making elements appear too small on high-dpi screens**.

Why is there no setting to have the Unreal DPI calculation to be linked not to game window size, but to the actual DPI of a screen, like every other UI framework and software out there?

---

<div class="post-metadata">

**Author:** ![k\_a\_s\_s\_k\_a\_s\_s](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/k_a_s_s_k_a_s_s/32/555828_2.png) [@k\_a\_s\_s\_k\_a\_s\_s](https://forums.unrealengine.com/u/k_a_s_s_k_a_s_s)\
**Post date:** [October 28, 2020, 9:24am UTC](https://forums.unrealengine.com/t/why-is-window-size-not-screen-dpi-used-for-dpi-calculations-in-slate-and-umg/473623/2 "2020-10-28T09:24:36Z")

</div>

There is some kind of “custom” rule for the DPI curve, but, as is frequently the case with various Unreal features, there is 0 documentation about. This answer hub question by user Al Ananias has been unanswered for like 2 years now: [Custom DPI scale rule - AnswerHub - Unreal Engine Forums](https://answers.unrealengine.com/questions/808875/custom-dpi-scale-rule.html)

---

<div class="post-metadata">

**Author:** ![isaac4096](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/isaac4096/32/975064_2.png) [@isaac4096](https://forums.unrealengine.com/u/isaac4096)\
**Post date:** [August 14, 2024, 11:48am UTC](https://forums.unrealengine.com/t/why-is-window-size-not-screen-dpi-used-for-dpi-calculations-in-slate-and-umg/473623/3 "2024-08-14T11:48:41Z")

</div>

hi there, have you found a solution?
