HiDPI font's are not following the Windows scaling

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, xnview

Post Reply
User avatar
pepemosca
Posts: 35
Joined: Fri Oct 05, 2007 11:17 pm

HiDPI font's are not following the Windows scaling

Post by pepemosca »

Hello,
I'm sorry in advance if this issue was covered before, but I was not able to find it.

I have a 4K display.
I have Windows 10 20H2.
I have Windows scaling set to 150%.

Image

And XnView MP has a different scalling than the one I had set. Fonts looks bigger than my setup of 150%.

Image

Any ideas how to fix it?
Thanks!
XnView 0.97.1 64bits (Oct 13 2020)
Windows 10 20H2
User avatar
xnview
Author of XnView
Posts: 34450
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: HiDPI font's are not following the Windows scaling

Post by xnview »

please start XnView with -noDpiScaling argument
Pierre.
User avatar
pepemosca
Posts: 35
Joined: Fri Oct 05, 2007 11:17 pm

Re: HiDPI font's are not following the Windows scaling

Post by pepemosca »

Looks better, thanks.
Additional question, can I control the amount of scaling? So the icons don't look that small.
Thanks!
XnView 0.97.1 64bits (Oct 13 2020)
Windows 10 20H2
User avatar
xnview
Author of XnView
Posts: 34450
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: HiDPI font's are not following the Windows scaling

Post by xnview »

you can set environment var QT_SCALE_FACTOR
Pierre.
User avatar
pepemosca
Posts: 35
Joined: Fri Oct 05, 2007 11:17 pm

Re: HiDPI font's are not following the Windows scaling

Post by pepemosca »

Can it be placed somewhere at the %appdata%\XnViewMP\xnview.ini or in the command line target?

Image
XnView 0.97.1 64bits (Oct 13 2020)
Windows 10 20H2
User avatar
xnview
Author of XnView
Posts: 34450
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: HiDPI font's are not following the Windows scaling

Post by xnview »

no you need to add a environment variable
Pierre.
chaotic.sys
Posts: 3
Joined: Wed Nov 25, 2020 8:14 am

Re: HiDPI font's are not following the Windows scaling

Post by chaotic.sys »

Thank you for a variable!
My case is exactly the same. Latest Win10x64, 150% scaling.
XnViewMP 0.96.5 - all good:
Image
But 0.97, 0.97.1:
Image
The DPI compatibility settings kept the font size just as huge.
Interestingly, the variable had to be set to 0.75 for the correct size.
User avatar
pepemosca
Posts: 35
Joined: Fri Oct 05, 2007 11:17 pm

Re: HiDPI font's are not following the Windows scaling

Post by pepemosca »

The problem I'm having by changing the environment variable QT_SCALE_FACTOR, is also affecting other software that I use. For example https://rstudio.com/products/rstudio/download/.

Any other idea on how to re-scale XnView?

Thanks!
XnView 0.97.1 64bits (Oct 13 2020)
Windows 10 20H2
chaotic.sys
Posts: 3
Joined: Wed Nov 25, 2020 8:14 am

Re: HiDPI font's are not following the Windows scaling

Post by chaotic.sys »

pepemosca wrote: Wed Nov 25, 2020 8:55 am The problem I'm having by changing the environment variable QT_SCALE_FACTOR, is also affecting other software that I use. For example https://rstudio.com/products/rstudio/download/.
Hmm, I just noticed that my GoldenDict is skewed because of this variable. So I don't even know which of the two to choose : )

UPD The only working solution is to roll back to the old version.
User avatar
xnview
Author of XnView
Posts: 34450
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: HiDPI font's are not following the Windows scaling

Post by xnview »

chaotic.sys wrote: Wed Nov 25, 2020 11:54 am
pepemosca wrote: Wed Nov 25, 2020 8:55 am The problem I'm having by changing the environment variable QT_SCALE_FACTOR, is also affecting other software that I use. For example https://rstudio.com/products/rstudio/download/.
Hmm, I just noticed that my GoldenDict is skewed because of this variable. So I don't even know which of the two to choose : )

UPD The only working solution is to roll back to the old version.
you can use -noDpiScaling argument to start XnView
Pierre.
chaotic.sys
Posts: 3
Joined: Wed Nov 25, 2020 8:14 am

Re: HiDPI font's are not following the Windows scaling

Post by chaotic.sys »

xnview wrote: Wed Nov 25, 2020 3:56 pm you can use -noDpiScaling argument to start XnView
I tried it, it works : ) I usually launch XnView from Explorer by clicking on thumbnails. Not sure how to apply the argument in this case. Through the bat file - somehow not very good : )
regs
Posts: 11
Joined: Tue Jul 26, 2016 9:05 pm

Re: HiDPI font's are not following the Windows scaling

Post by regs »

Having same problem. XnViewMP starts starts with 200% scaling, instead of 150%.
-noDpiScaling switching scaling off entirely, making everything too small.

Can it be just reverted to previous scaling approach? It was working.
User avatar
xnview
Author of XnView
Posts: 34450
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: HiDPI font's are not following the Windows scaling

Post by xnview »

regs wrote: Sat Jan 09, 2021 3:08 am Having same problem. XnViewMP starts starts with 200% scaling, instead of 150%.
-noDpiScaling switching scaling off entirely, making everything too small.

Can it be just reverted to previous scaling approach? It was working.
which font scaling value do you have in windows?
Pierre.
regs
Posts: 11
Joined: Tue Jul 26, 2016 9:05 pm

Re: HiDPI font's are not following the Windows scaling

Post by regs »

150%

Reverted to 0.96.5 for the time being. That one is fine.
User avatar
xnview
Author of XnView
Posts: 34450
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: HiDPI font's are not following the Windows scaling

Post by xnview »

regs wrote: Sun Jan 24, 2021 8:18 pm 150%

Reverted to 0.96.5 for the time being. That one is fine.
0.80.1 fix this issue
Pierre.
Post Reply