ModOrganizer2 / modorganizer

Mod manager for various PC games. Discord Server: https://discord.gg/ewUVAqyrQX if you would like to be more involved
http://www.nexusmods.com/skyrimspecialedition/mods/6194
GNU General Public License v3.0
2.21k stars 163 forks source link

Font is too large on high DPI systems (2.3) #1175

Open isanae opened 4 years ago

isanae commented 4 years ago

Qt 5.14 has changed the way it uses the Windows font scaling setting. It now rounds it so that 125% becomes 100% and 150% becomes 200%.

A temporary fix is to set the environment variable QT_SCALE_FACTOR_ROUNDING_POLICY=PassThrough.

A real fix is probably to do this in main.cpp, just before setting AA_EnableHighDpiScaling:

QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
   Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
isanae commented 4 years ago

2.3.1 won't have a fix for this. Changing the scaling factor to passthrough fixes the problem for some but creates more for others. I can't seem to fix it for everybody and so I prefer to keep Qt's default.

Setting the environment variable QT_SCALE_FACTOR_ROUNDING_POLICY to PassThrough might still work for some people.

See 64ba6cae1e6b74929d88de628bb2915cb9c6f2d2.

AnyOldName3 commented 4 years ago

This shouldn't be won't fix as it's just that we probably won't be fixing it soon. To do things properly, we basically need to have passthrough and replace our single-resolution icons with vector/multi-resolution ones. That's potentially a chunk of work, but it's doable.