jwm icon indicating copy to clipboard operation
jwm copied to clipboard

X11 fonts don't work

Open absolutelynothinghere opened this issue 4 years ago • 4 comments

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.

absolutelynothinghere avatar Feb 16 '21 19:02 absolutelynothinghere

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

daltomi avatar Jul 29 '21 20:07 daltomi

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.

absolutelynothinghere avatar Jan 07 '22 10:01 absolutelynothinghere

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

daltomi avatar Jan 08 '22 21:01 daltomi

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.

absolutelynothinghere avatar Jan 11 '22 10:01 absolutelynothinghere