Dpi scaling #770
elpapimango
started this conversation in
General
Dpi scaling
#770
Replies: 2 comments 1 reply
-
|
i do not have/use 2 monitors, but i have questions:
// Get display DPI scaling
$dpi = reg.get('HKCU\Control Panel\Desktop', 'LogPixels')
$displayScale = if(dpi==0, 96, dpi)/96 // do not know what happened if null or do not exist
// Get accessibility text scaling
$textScale = reg.get('HKCU\Software\Microsoft\Accessibility', 'TextScaleFactor')
$textScaleFix = if(textScale==0, 100, textScale) // fix for %
$textScaleFactor = $textScaleFix/100
// Final
$finalScale = 14 * $displayScale * $textScaleFactor |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
DPI:
A year ago I had some ideas on the topic, but I gave up - the end result is not satisfactory. I saw the post and was curious |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Was messing around and found this worked pretty well for me. I have 2 monitors. One with 100% scaling and one with 150%. Compared to standard popup menu, it looks like the font is pretty much the same size.
theme.nss
Beta Was this translation helpful? Give feedback.
All reactions