Changing text size sadly also applies to external non high-dpi screens.
Also, at least on my Windows 10 laptop, the text scaling looks very ugly (distroying the styling of apps) and only applies to some text elements, leaving others and also icons much too small.
Therefore, I was very unhappy with this solution and searched on:
The Windows taskmanager tells us the executable path of our VNC client:
"\wsl.localhost\kali-linux\usr\lib\win-kex\TigerVNC\win-kex-win-x64"
Copying that over to our Windows drive (and adding the .exe file-extension) enables us to change the compatiblity settings:
Windows Explorer -> file context menu -> Properties
-> Tab: Compatibility -> Change high DPI settings
-> Check: "Override high DPI scaling behavior."
-> Dropdown select: "Application"
searching for the binaries name in Windows' registry shows us what that did:
Folder: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
Key: C:\path-to-copy\win-kex-win-x64.exe
Type: REG_SZ
Value: ~ HIGHDPIAWARE
Disconnecting the autostarted VNC client (F8 -> dis_c_onnect)
And using the copy to connect to kali_linux_ip:5901
Allows kali's X server to make use of the native resolution of your screen.
Open questions:
- Can we somehow apply the same compatiblity setting to the original client's path?
Changing the registry key from "C:\path-to-copy\win-kex-win-x64.exe"
to "\wsl.localhost\kali-linux\usr\lib\win-kex\TigerVNC\win-kex-win-x64" sadly doesn't seem to do anything.
- How can we make kex start the X-server with the correct native resolution?