Page 1 of 1

HiDPI font's are not following the Windows scaling

Posted: Mon Nov 02, 2020 2:22 pm
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!

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

Posted: Tue Nov 10, 2020 9:56 am
by xnview
please start XnView with -noDpiScaling argument

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

Posted: Tue Nov 10, 2020 7:02 pm
by pepemosca
Looks better, thanks.
Additional question, can I control the amount of scaling? So the icons don't look that small.
Thanks!

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

Posted: Wed Nov 11, 2020 12:24 pm
by xnview
you can set environment var QT_SCALE_FACTOR

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

Posted: Wed Nov 11, 2020 7:40 pm
by pepemosca
Can it be placed somewhere at the %appdata%\XnViewMP\xnview.ini or in the command line target?

Image

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

Posted: Thu Nov 12, 2020 7:17 am
by xnview
no you need to add a environment variable

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

Posted: Wed Nov 25, 2020 8:49 am
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.

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

Posted: Wed Nov 25, 2020 8:55 am
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!

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

Posted: Wed Nov 25, 2020 11:54 am
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.

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

Posted: Wed Nov 25, 2020 3:56 pm
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

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

Posted: Wed Nov 25, 2020 6:04 pm
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 : )

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

Posted: Sat Jan 09, 2021 3:08 am
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.

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

Posted: Mon Jan 11, 2021 1:54 pm
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?

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

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

Reverted to 0.96.5 for the time being. That one is fine.

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

Posted: Mon Jan 25, 2021 10:34 am
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