You are not logged in.

#1 2015-11-06 16:35:26

feklee
Member
Registered: 2015-04-03
Posts: 57
Website

X DPI setting not respected anymore – why?

After a recent update, certain X applications, at least those based on GTK+ 3 don't respect the DPI setting anymore:

$ xdpyinfo | grep -B2 resolution
screen #0:
  dimensions:    2880x1620 pixels (381x214 millimeters)
  resolution:    192x192 dots per inch

The result is tiny fonts, for example in the EMACS menu bar.

What has changed? How do I get GTK+ 3 applications respect the DPI settings?

I know that one can scale GTK+ 3 UI elements by adjusting the environment variables GDK_SCALE and GDK_DPI_SCALE. However, for getting correct font size that should not be necessary, at least in the past it was not necessary.

Offline

#2 2015-11-09 04:21:48

chx
Member
Registered: 2011-05-28
Posts: 101

Re: X DPI setting not respected anymore – why?

https://bbs.archlinux.org/post.php?tid=204823 is relevant but contains no solutions.

Offline

#3 2015-11-09 10:46:55

feklee
Member
Registered: 2015-04-03
Posts: 57
Website

Re: X DPI setting not respected anymore – why?

chx wrote:

https://bbs.archlinux.org/post.php?tid=204823 is relevant but contains no solutions.

Thanks for the link, but I don't think it is related:

$ xrdb -query | grep dpi
xft.dpi:        192
$ xdpyinfo | grep -B2 resolution
screen #0:
  dimensions:    2880x1620 pixels (381x214 millimeters)
  resolution:    192x192 dots per inch
$ xrandr | grep mm
eDP1 connected 2880x1620+0+0 (normal left inverted right x axis y axis) 340mm x 190mm

Although the DPI value does not match, in all cases it's close to 200. Yet fonts are rendered as if the screen had a resolution of 96 DPI, i.e. they appear tiny.

Could this be a Freetype issue? How can I log which resolution Freetype sees?

Offline

Board footer

Powered by FluxBB