+1
Started

Dialog does not support DPI scaling

Anonymous 7 years ago updated 1 week ago 4

When using scaling higher than 100%, the settings dialog shows fuzzy font, which I'm assuming is due to not supporting rending the dialog with proper scaling. I'm using 175% scaling.

Answer

Answer

Making the dialog support scaling is not difficult - just one function call.


The issue is (quoting microsoft.com):

While TrueType fonts scale well, they do not scale linearly. That is, increasing the DPI by 10 percent does not generally increase a string's length by exactly 10 percent. The cumulative effect, especially in longer strings, might cause text in different resolutions to be relatively shorter or to be clipped or to wrap unexpectedly.


This is especially relevant to the tweaker because of the nature of the dialog - lots of checkboxes and tight spacing.

Look at the screenshot:

http://i.imgur.com/2FVoli9.png


As you can see, many texts are clipped.

While it could be fixed in English by extending the controls to the maximum available width, it's not true for all languages. e.g.:

http://i.imgur.com/brgULrE.png


It might be solvable by adjusting the dialog dynamically, but that requires some work.

Also, as the dialog is used mostly for a one-time configuration, the issue is not critical.

(Taskbar Inspector supports scaling as it runs from the context of explorer)


I'm changing it to "idea" as this is not a bug.

Answer

Making the dialog support scaling is not difficult - just one function call.


The issue is (quoting microsoft.com):

While TrueType fonts scale well, they do not scale linearly. That is, increasing the DPI by 10 percent does not generally increase a string's length by exactly 10 percent. The cumulative effect, especially in longer strings, might cause text in different resolutions to be relatively shorter or to be clipped or to wrap unexpectedly.


This is especially relevant to the tweaker because of the nature of the dialog - lots of checkboxes and tight spacing.

Look at the screenshot:

http://i.imgur.com/2FVoli9.png


As you can see, many texts are clipped.

While it could be fixed in English by extending the controls to the maximum available width, it's not true for all languages. e.g.:

http://i.imgur.com/brgULrE.png


It might be solvable by adjusting the dialog dynamically, but that requires some work.

Also, as the dialog is used mostly for a one-time configuration, the issue is not critical.

(Taskbar Inspector supports scaling as it runs from the context of explorer)


I'm changing it to "idea" as this is not a bug.

Thanks for linking me here! Has Microsoft made anything easier with DPI scaling since this request was made? 

+2
Started

No, and I don't think it will ever change, the native Win32 GUI is based on technology that is about 30 years old.

But I guess that it's about time to make this work. I spent some time (much more than I hoped for) to go over all languages and fix the kind of issues I described in the other comment here. I hope that all of them are indeed fixed. Please try the newly released beta version, 5.9.0.1.

Thank you so so much!!!!! <33333