Sample Header Ad - 728x90

How to set wine DPI from the command line?

6 votes
2 answers
2237 views
I have a high DPI monitor, and every time I create a Wine prefix the default 96 dpi is minuscule. Is there some kind of console command or script I can run to just set the dpi without having to squint at the winecfg window? I've gathered that the Software/System/CurrentControlSet/Hardware Profiles/Current/Software/Fonts/LogPixels key indicates the DPI. The problem is that every resource I find says to edit the registry with regedit, the GUI program. That is even more of a pain than winecfg! As I recall, in Windows you could write .reg files that can set a registry key. Is it possible to do that and somehow load the key from the command line only? Failing that, is it possible to somehow bypass winecfg and edit the registry file directly?
Asked by Bagalaw (1085 rep)
Oct 15, 2021, 03:48 AM
Last activity: Apr 18, 2023, 03:47 AM