You are not logged in.

#1 2022-05-12 16:20:17

anark10n
Member
Registered: 2012-10-13
Posts: 211

[RESOLVED] Cropped text in openbox menu

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

#2 2022-05-12 18:27:31

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

Re: [RESOLVED] Cropped text in openbox menu

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

#3 2022-05-12 18:58:29

anark10n
Member
Registered: 2012-10-13
Posts: 211

Re: [RESOLVED] Cropped text in openbox menu

"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

#4 2022-05-12 19:13:39

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

Re: [RESOLVED] Cropped text in openbox menu

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

#5 2022-05-14 07:03:46

anark10n
Member
Registered: 2012-10-13
Posts: 211

Re: [RESOLVED] Cropped text in openbox menu

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

#6 2022-05-14 12:07:12

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

Re: [RESOLVED] Cropped text in openbox menu

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

#7 2022-05-14 21:36:31

anark10n
Member
Registered: 2012-10-13
Posts: 211

Re: [RESOLVED] Cropped text in openbox menu

seth wrote:

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

Board footer

Powered by FluxBB