Search Issue Tracker
Third Party Issue
Votes
2
Found in
2019.3.0a3
2019.3.0b1
2019.4
2020.3
2021.1
2021.2
Issue ID
1181604
Regression
No
Windows title bar font size becomes very small when Unity UI Scaling is set to a higher value and Windows Scaling is changed
Repro steps:
1. Open attached project "1181604_DPI"
2. Open Preferences by going to Edit > Preferences and open the UI Scaling tab
3. Change "Use custom scaling value" to a bigger value than the default
4. Close Unity and open it back again
5. Open Windows Display settings and change Windows Scaling to a different value
Expected result: Scaling is changed and Title font size is proportionate to other window elements
Actual result: The title font size in the Title Bar is significantly smaller than other element font sizes
Reproducible with: 2019.3.0a3, 2019.4.26f1, 2020.3.8f1, 2021.1.7f1, 2021.2.0a17
Could not test with: 2018.4.35f1, 2019.3.0a2 (UI Scaling not implemented)
Note:
- Title font size is changed for other applications as well
- For maximum effect, change both UI Scaling and Windows Scaling to maximum values
Workaround: Signing out of your Windows account or restarting your computer
Comments (3)
-
unity_B930BE387325E5B0FB76
Oct 04, 2023 10:13
The window title font problems may be caused by the SystemParametersInfoForDpi API call.
google "SystemParametersInfoForDpi will corrupt the window title font on rescaling". -
CyberAngel
Sep 13, 2021 09:35
And how does Unity also explain how this is only Affecting a certain Unity version onwards?
-
CyberAngel
Sep 13, 2021 09:33
And yet how does Unity explain how we can use our systems for months on end, and not have the titles of our windows change. In my case I have two computer systems, one had never had Unity installed, and has never had this issue. That computer has been around for 6 years, that is 6 years with no issues.
The moment, and I mean the moment I installed Unity on it and ran Unity Hub, nothing else, my Window Titles changed!
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (2021.2.X):
After a long investigation, this appears to be a Windows DPI bug. After completely disabling any code that we execute when DPI is changed it is still possible to reproduce the issue. According to our information it can also occur with other applications such as Notepad++ (but not as consistently) and in some cases can even be triggered by things such as a Windows update.