You are not logged in.

#1 2024-04-02 08:00:37

rochus
Member
Registered: 2007-02-14
Posts: 91

[SOLVED] odd font size issue

I updated my system this morning. Since then, terminal fonts are larger than they should be. That is, I usually have Liberation Mono with size 9 in my terminal and DejaVu Sans Mono with size 7 in dwm as well as dmenu. However, I had to set Liberation Mono to size 7 and DejaVu Sans Mono to size 5 to achieve the same look as they had before. The behavior is consistent across terminals (tested: urxvt, st, xterm).

I didn't see any announcements regarding DPI or font changes, and I don't even know where to start looking for the cause of this. Any hints appreciated. The list of updated/installed packages during the update can be found here: https://0x0.st/XzwO.log.

Last edited by rochus (2024-04-02 09:05:17)

Offline

#2 2024-04-02 08:31:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,805

Re: [SOLVED] odd font size issue

Possibly something in the harfbuzz update and/or pango?

Last edited by V1del (2024-04-02 08:31:38)

Offline

#3 2024-04-02 08:46:52

seth
Member
Registered: 2012-09-03
Posts: 51,739

Re: [SOLVED] odd font size issue

urxvt -fn "xft:DejaVu Sans Mono:pixelsize=11"

Using the pixelsize syntax will get you consistent results and also allow more finegrained control (but isn't DPI aware if you change outputs)

Did only the font size change or also the appearance (ie. they look more condensed/taller)?

xrandr -q
xdpyinfo | grep resol
xrdb -q | grep -i dpi

If you've a ~125dpi output and previously been running on 96dpi that would check out…

Offline

#4 2024-04-02 09:05:07

rochus
Member
Registered: 2007-02-14
Posts: 91

Re: [SOLVED] odd font size issue

Thanks for the hint, seth! The culprit was a new monitor that I attached to the system which has higher DPI than the first one. I didn't reboot since attaching until this morning, and it appears that the nvidia driver pulls the DPI information from this particular monitor instead of the first. Using 'pixelsize' instead of 'size' solves the issue.

Offline

#5 2024-04-02 12:37:57

seth
Member
Registered: 2012-09-03
Posts: 51,739

Re: [SOLVED] odd font size issue

You can set the dpi w/ "xrandr --dpi" but also as Xorg server parameter and the nvidia drivers support an xorg config(let) option for it:
https://wiki.archlinux.org/title/Xorg#D … ze_and_DPI

Offline

Board footer

Powered by FluxBB