You are not logged in.
Hey there
As the title says, the text in the openbox menu displays with cropped text, about 1 or two pixels off the top. It happens with any font, at any size, for any theme. How do I stop that from happening? Running version 3.6.1.
Last edited by anark10n (2022-05-14 21:39:06)
Offline
If it's not the openbox theme, I'd first look for conflicting DPI settings (xdpyinfo | grep resolution; xrandr -q; xrdb -q | grep -i dpi)
Do other UI elements crop text?
Online
"xdpyinfo | grep resolution; xrandr -q; xrdb -q | grep -i dpi" produces
resolution: 81x80 dots per inch
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
DVI-I-0 disconnected primary (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
1920x1080 60.00*+ 59.94 50.00
1680x1050 59.95
1600x900 60.00
1440x900 59.89
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
It was cropping text in titlebar before until I changed the font, so I tried switching font (IBM Plex) and it solved the cropping, but when I switch back to the previous font (Sans), the cropping still occurs.
Offline
IBM Plex) and it solved the cropping … when I switch back to the previous font (Sans), the cropping still occurs
fc-match Sans
The resolution fits the physical one but maybe something has hardcoded 96dpi
xrandr --dpi 96
But you'll have to restart openbox (but NOT X11) to get some impact from that.
Online
fc-match Sans returns
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
But I still get cropped text when I switch the openbox menu font to that font. Same for when I run xrandr --dpi 96, although I just logged out after that command and logged back in, so I'm not sure that's the correct way of restarting openbox but not X11.
Offline
I'm not sure that's the correct way of restarting openbox but not X11.
No, you'd have to prevent openbox from keeping the session (don't make it the "exec" in your xinitrc?) and replace the process ("openbox --replace" should do)
You can also inject "xrandr --dpi 96" into your session script (xinitrc?)
Nimbus has a history of broken extents - have you tried a better™ font like adobe source pro?
Online
Nimbus has a history of broken extents - have you tried a better™ font like adobe source pro?
Yeah, I just decided to go with IBM plex since it doesn't get cropped, so I guess that's this issue resolved.
Offline