joewing / jwm

Joe's Window Manager
http://joewing.net/projects/jwm
MIT License
520 stars 84 forks source link

Tasklist does not display underscore character at the beginning #597

Open frachmadin opened 1 year ago

frachmadin commented 1 year ago

Hi, Joe.

I didn't find any duplicate issue before.

Issue: Tasklist button on Tray does not display underscore "_" character at the beginning although it is displayed correctly on the Window Title.

Version of JWM: jwm -v v2.4.3 by Joe Wingbermuehle compiled options: confirm icons jpeg nls pango png shape svg xbm xft xinerama xpm xrender system configuration: /usr/local/etc/system.jwmrc

I installed JWM on top of Xfce anyway, but login from lightdm with JWM session.

Below the example screenshot from Thunar file manager: Screenshot_2022-12-22_19-40-33

It's not affected only on Thunar. I also found it on Geany text editor and Ristretto image viewer.

Thanks.

frachmadin commented 1 year ago

Just did a quick research.

Previously I set the Tasklist font size to 8, when I increased the font size to 9, Tasklist displayed the underscore "_" characters correctly. Therefore, it is not actually affected on Tasklist only, it is affected also on Window Title and is not affected on character position (at the beginning, in between, or at the end).

Screenshot when I set the Window Title font size to 8 and Tasklist to 9: Screenshot_2022-12-22_20-27-02

Screenshot of not affected on character position: Tasklist font size 8: Screenshot_2022-12-22_21-04-17

Tasklist font size 9: Screenshot_2022-12-22_21-03-54

STrRedWolf commented 1 year ago

I doubt this is a WM bug (although don't count out clipping issues) but a font rendering bug. What font are you using for your Tasklist and Window Title?

If you open up LibreOffice, set it to the right font and size, and then type the underscore, does the underscore render or not?

frachmadin commented 1 year ago

I doubt this is a WM bug (although don't count out clipping issues) but a font rendering bug. What font are you using for your Tasklist and Window Title?

I use Sans (Dejavu Sans) on both. I tried using another fonts, Noto Sans, it's rendered correctly anyway.

Edit: I did compare with my Xfce installation. Xfce also have Tasklist plugin on their Panel. I didn't find the same issue on it.

If you open up LibreOffice, set it to the right font and size, and then type the underscore, does the underscore render or not?

I don't have LibreOffice installed right now. I'll try to set it up later.