joewing / jwm

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

X11 fonts don't work #514

Open absolutelynothinghere opened 3 years ago

absolutelynothinghere commented 3 years ago

First off thank you for this amazing window manager! Second, I can't make X11 fonts work within jwm. For example I tried using one of the stock fonts that looks like this:

-*-helvetica-bold-r-*-*-17-*-*-*-*-*-*-*

in multiple styles but jwm just shows the default sans TTF font instead. I copied the full font code verbatim from my working xmessage scripts so I'm pretty sure this problem is coming from jwm's side. Any help?

I'm using jwm version 2.3.7 from the void linux repos.

daltomi commented 3 years ago

You need to use an alias that is listed in the file fonts.alias

 find /usr/share/fonts/ -name fonts.alias

Example:

variable     -*-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-1
5x7          -misc-fixed-medium-r-normal--7-70-75-75-c-50-iso8859-1
5x8          -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso8859-1
6x9          -misc-fixed-medium-r-normal--9-90-75-75-c-60-iso8859-1

You can also create your own aliases

absolutelynothinghere commented 2 years ago

You need to use an alias that is listed in the file fonts.alias

This doesn't solve the problem, JWM still doesn't display the selected X11 font even if I refer to it by its alias.

daltomi commented 2 years ago

I don't know what the problem could be, try: $ xset fp rehash See https://wiki.archlinux.org/title/X_Logical_Font_Description#Aliases

absolutelynothinghere commented 2 years ago

I already do xset fp rehash along with fc-cache -fv, it makes no difference.

The only way to get any kind of result is to set the alias as the actual font name (i.e. helvetica), and even then it doesn't even display the correct pixel size / style that I set.