HiDPI support for gtk3-port (Linux and Mac OS X)
@brion
Submitted by Brion Vibber (personal) Link to original bug (#725263)
Description
Some newer laptops are coming out with 2560x1440 or higher displays which need a 2x scaling factor to render the UI at correct size with higher-density display surfaces.
This can be tested under GNOME 3.10 or later by setting:
gsettings set org.gnome.desktop.interface scaling-factor 2
(set back to 1 for standard resolution)
Gtk2 apps like current version of Gimp may pick up the font size, but all the icons and graphics and whatnot tend to display super-tiny -- this is fairly broken from a user perspective.
Gtk3 has native support for the display scaling; on a quick test of gtk3-port branch, gimp-2.99 displays at proper size in HiDPI mode but all the icons and graphics are blurry. (Additionally various things seem broken in the branch... :( )
On Mac OS X, Gtk3 also has better native support for OS X's HiDPI mode ('Retina display'), so common code in the gtk3 branch should be able to target both.
(Current Gtk2-based Gimp builds display at proper size but icons and some graphics are low-res because Gtk2's OS X backend doesn't know about the high-resolution stuff.)
Basic subissues:
- gtk3 port needs to be completed
- all theme icons should include 2x-resolution versions
- graphics surfaces should render at 2x-density to make use of the screen resolution