Fedora Linux - Xresources setting of Xft.dpi is ignored

1.7k views Asked by At

I would like to change the Xft.dpi Xresources property (to get larger fonts in LibreOffice). By default it is 96, as shown by

% xrdb -query | grep dpi
Xft.dpi:    96

I want to set it to 192 so I created a file ~/.Xresources with content

Xft.dpi:    192

I can manually load this with xrdb -merge:

% xrdb -merge .Xresources
% xrdb -query | grep dpi
Xft.dpi:    192

For good measure I also created a .xinitrc file which runs the xrdb -merge command. I can see that this does work for other properties; as a test I added XTerm*background: black, and that is set correctly at login.

But the dpi setting, no matter what I do, gets stuck at 96, as shown by running xrdb -query from a terminal immediately after login:

% xrdb -query | grep dpi
Xft.dpi:    96

(The XTerm*background setting is shown by xrdb -query, so clearly some properties are getting set, but somehow not this one.)

I do not see it taking effect in LibreOffice either (while it does do so if set with xrdb after login). Is something overwriting it back again?

I even edited the global /etc/X11/Xresources, changing the dpi from its default 96 to 192, but it still gets stuck at 96 on login. What is causing it to ignore or override what I have specified in .Xresources?

This is Fedora 23 x86_64.

0

There are 0 answers