JEP 263: HiDPI Graphics on Windows and Linux
Summary
Implement HiDPI graphics on Windows and Linux.
Motivation
Developers and users have some basic expectations for applications running on HiDPI displays:
-
Windows and GUI components should have an appropriate size based on the platform recommendations,
-
Text should remain crisp despite any default scaling indicated by the HiDPI settings, and
-
Icons and images should be smooth and preferably have details appropriate for the pixel density of the display.
Unfortunately, Java applications are still sized and rendered based on pixels on Windows and Linux even on HiDPI displays that can have pixel densities 2 to 3 times as high as traditional displays. This leads to GUI components and windows that are 2 to 3 times too small and thus too small to read or effectively interact with.
The JDK already supports HiDPI "retina displays" on Mac OS X and displays crisp text and images at the appropriate sizes for the density of the display. A fair amount of groundwork for supporting HiDPI displays on all platforms has already been provided by the Mac "retina" support, but differences in the way that applications are supposed to handle HiDPI in the various platforms means that additional work remains to generalize what was done for the Mac.
The same automatic scaling and sizing should now be provided for the Windows and Linux platforms.