Join GitHub today
support for graphics, UI elements on HiDPI displays #8770
As described in #6005, Spacemacs starts out with everything looking very tiny on a HiDPI display. The workaround described in that bug, adjusting the font size to something huge (I'm using a 30-point font size), fixes text but not other UI elements. The
I have a standard HiDPI setup, where I have the DPI adjusted in .Xresources and GNOME scaled to 2 using Tweak Tool. Other GTK3 applications scale perfectly.
This screenshot shows what is probably a side-effect of this bug: the PNG is displayed as huge inside the table (this is in the Spacemacs documentation), but when displayed in its own window, is microscopically small:
This screenshot shows the extremely small size of the line continuation character next to the size of the text:
A lot of threads about similar problems say to run emacs with the command
To me this looks like an upstream problem with emacs, not a spacemacs problem. While
At least, the scaling doesn't work on my setup -- would be interested to hear from anyone who has hidpi scaling working for inline images in emacs-Q.
The following advice, while not perfect, seems to improve the situation. For example, it improves the spacemacs home buffer, org inline images, and EIN. Tetris is still tiny.
Basically it wraps most calls to