Cygwin X on high DPI

cygwin-xcygwin;dpihigh-dpi

On my Windows 10 Surface Pro (2736×1824 resolution), whenever I connect via PuTTY to an Ubuntu 14.04 server and run Eclipse or gVim over Cygwin X, the text and windows are extremely small.

I can drag the windows over to my desktop monitor (1920×1080), but that just takes the image at the size it would be on the 2736×1824 screen and scales it down to be the same approximate size (only fuzzier, due to the lower resolution).

Is there any way to get Cygwin or the Unix X programs I'm running to recognize the DPI, or automatically scale images, or similar?

I saw that Cygwin's X has a DPI option, but I can't tell that it has any effect on gVim or Eclipse.

Best Answer

Run these commands in the server's bash session before running apps:

export GDK_SCALE=2
export QT_SCALE_FACTOR=2
export ELM_SCALE=2 

You can add those lines to ~/.bash_profile to make that automatic on future logins.

Source: HiDPI - ArchWiki

Related Question