The officially official Devuan Forum!

You are not logged in.

#1 2021-12-04 08:59:01

amc252
Member
From: Italy/México
Registered: 2021-01-16
Posts: 44  

Ugly fonts in JWM after upgrade

Hello,

On Daedalus, my JWM fonts changed after the latest upgrade (not dist-upgrade).

I tried to change my .jwmrc configuration or even use the system jwmrc default, but nothing has changed.
All the other programs seem to work fine.

Offline

#2 2021-12-04 09:46:56

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Ugly fonts in JWM after upgrade

What is the nature of these changes? A (cropped) screenshot would probably be appropriate.

Which packages were updated?


Brianna Ghey — Rest In Power

Offline

#3 2021-12-04 13:37:58

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,323  

Re: Ugly fonts in JWM after upgrade

I don't mean to butt in, but this may possibly help?

It has been a while since I used JWM or made a release of it, but this is something that I've done on every window manager that I've used for many years to help with font rendering, and it has always worked for me. Whether it will help with your scenario or not, I can't say for sure. However, it will only take a couple of minutes to find out.

1. Open your file manager as root, and navigate to /etc/fonts/

2. You may see a file there called fonts.conf; however, create a new file, and name it local.conf

3. Copy and paste the following into the newly created local.conf file...

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <match target="font">
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintslight</const>
        </edit>
        <edit mode="assign" name="rgba" >
            <const>rgb</const>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="lcdfilter">
            <const>lcddefault</const>
        </edit>
    </match>

<!-- Set preferred serif, sans serif, and monospace fonts. -->
    <alias>
        <family>serif</family>
        <prefer>
            <family>Droid Serif</family>
        </prefer>
    </alias>
    <alias>
        <family>sans-serif</family>
        <prefer>
            <family>Droid Sans</family>
        </prefer>
    </alias>
    <alias>
        <family>sans</family>
        <prefer>
            <family>Droid Sans</family>
        </prefer>
    </alias>
    <alias>
        <family>monospace</family>
        <prefer>
            <family>Droid Sans Mono</family>
        </prefer>
    </alias>
    <alias>
        <family>mono</family>
        <prefer>
            <family>Droid Sans Mono</family>
        </prefer>
    </alias>

</fontconfig>

4. Save the file and close it. Then reboot.

If it helped, you'll know. If it didn't, you'll know, and you can curse me, my wife, my children, and anyone else that you want. tongue


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#4 2021-12-04 16:24:10

amc252
Member
From: Italy/México
Registered: 2021-01-16
Posts: 44  

Re: Ugly fonts in JWM after upgrade

MiyoLinux:  thanks for the tip. I tried the local.conf fix but unfortunately it didn't seem to work.
Head_on_a_Stick: It was a general upgrade, upgraded many packages. But every other program seem to work fine. It's just Jwm. I tried

$ sudo dpkg-reconfigure fontconfig-config

and

$ sudo dpkg-reconfigure fontconfig

But it doesn't seem to make any difference.
My .jwmrc is like

<!Font>-*-fixed-*-r-*-*-10-*-*-*-*-*-*-*</Font>

and I tried also

<Font>DejaVuSans-10</Font>

and even the systemwide jwmrc.

Here is a screenshot of the taskbar. https://drive.google.com/file/d/1mr9dAY … p=sharing]

Offline

#5 2021-12-04 21:52:19

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,323  

Re: Ugly fonts in JWM after upgrade

Ah...okay. I'm sorry. I never used the .jwmrc file to control fonts other than specifying the fonts to be used in the menu, panel, and window title bars...I always let my local.conf file control everything as far as hinting (etc). I recall seeing that font configuration that you posted somewhere in the past, but I can't remember where I saw it...or what window manager was using it.

Last edited by MiyoLinux (2021-12-04 22:00:02)


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#6 2021-12-04 22:53:41

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Ugly fonts in JWM after upgrade

amc252 wrote:

It was a general upgrade, upgraded many packages.

Please provide a list.

amc252 wrote:

I tried

$ sudo dpkg-reconfigure fontconfig-config

and

$ sudo dpkg-reconfigure fontconfig

But it doesn't seem to make any difference.

Which options did you select?

amc252 wrote:

My .jwmrc is like

<!Font>-*-fixed-*-r-*-*-10-*-*-*-*-*-*-*</Font>

and I tried also

<Font>DejaVuSans-10</Font>

The first is a bitmap (XLFD) font, the second is an outline (Xft) font. Which type of font do you want to use?

EDIT: I don't think you should have an exclamation mark in <Font>. Is that a transcription error?

amc252 wrote:

Here is a screenshot of the taskbar.

That seems to show a bitmap font. Is that not what you want?

Can you provide a screenshot showing acceptable font rendering?

Last edited by Head_on_a_Stick (2021-12-04 23:01:10)


Brianna Ghey — Rest In Power

Offline

#7 2021-12-04 23:23:44

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,323  

Re: Ugly fonts in JWM after upgrade

Head_on_a_Stick wrote:

EDIT: I don't think you should have an exclamation mark in <Font>. Is that a transcription error?

Yeah...the exclamation mark comments things out; however, if I remember correctly, the exclamation point should be enclosed with a left arrow, exclamation point, two dashes...followed by what is intended to be commented out...then closed with two dashes and a right arrow; such as...

<! -- put-some-stuff-here -->

Perhaps the exclamation point is causing jwm to have a nervous-jerkdown, because it's looking for the other characters but not seeing them?


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#8 2021-12-04 23:28:42

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Ugly fonts in JWM after upgrade

MiyoLinux wrote:

if I remember correctly, the exclamation point should be enclosed with a left arrow, exclamation point, two dashes...followed by what is intended to be commented out...then closed with two dashes and a right arrow; such as...

<! -- put-some-stuff-here -->

Yes, that's right.

MiyoLinux wrote:

Perhaps the exclamation point is causing jwm to have a nervous-jerkdown, because it's looking for the other characters but not seeing them?

Perhaps.


Brianna Ghey — Rest In Power

Offline

#9 2021-12-04 23:29:09

MiyoLinux
Member
Registered: 2016-12-05
Posts: 1,323  

Re: Ugly fonts in JWM after upgrade

Unless something has changed with Daedalus, I looked at my old .jwmrc files to see how I listed the various fonts. This is how I have one of them...I had to separate DejaVu from Sans with a dash; like so...

<Font>DejaVu-Sans-11:book</Font>

I'm going to bow out now. I'm not even using JWM right now, and my information may no longer be correct. tongue

Last edited by MiyoLinux (2021-12-04 23:29:50)


I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#10 2021-12-04 23:51:45

amc252
Member
From: Italy/México
Registered: 2021-01-16
Posts: 44  

Re: Ugly fonts in JWM after upgrade

Head_on_a_Stick

I don't recall hw many packages were updated and I don't know how to recover such the preise list from the logs.
I reconfigured the system fonts using all the default options.
The bitmap (XLFD) fonts are what i always used up to this problem.
The  (Xft) fonts is something I tried to see if it worked.
I would like to use the former if possible, but any readable fonts would do.
The screenshot is how the fonts look now, which is almost unreadable.
Yes, the ! in the configuration is a typo.
this is a screenshot of the old fonts:
https://drive.google.com/file/d/1gTpC6h … sp=sharing

Offline

#11 2021-12-04 23:55:03

amc252
Member
From: Italy/México
Registered: 2021-01-16
Posts: 44  

Re: Ugly fonts in JWM after upgrade

MiyoLinux

I tried <Font>DejaVu-Sans-11:book</Font> but doesn't work either.

Offline

#12 2021-12-04 23:59:36

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Ugly fonts in JWM after upgrade

amc252 wrote:

this is a screenshot of the old fonts:

That shows outline fonts.

Run dpkg-reconfigure again and disable bitmap fonts. Or use the correct nomenclature for Xft fonts:

<Font>Dejavu Sans-10</Font>

Reference: https://joewing.net/projects/jwm/fonts.html

EDIT: it might be better to use

<Font>sans-10</Font>

Then define the sans alias as per Miyo's earlier post. That way you can set sans everywhere and have that defined in a single location if you ever want to change it.

Last edited by Head_on_a_Stick (2021-12-05 00:01:46)


Brianna Ghey — Rest In Power

Offline

#13 2021-12-05 00:19:37

amc252
Member
From: Italy/México
Registered: 2021-01-16
Posts: 44  

Re: Ugly fonts in JWM after upgrade

I downgraded Jwm from 2.4.0-1 to 2.3.7-5, and now the fonts are just fine.
Not a solution, perhaps, but a fix.

Offline

#14 2021-12-06 22:46:01

alphalpha
Member
From: Germany
Registered: 2018-01-23
Posts: 137  

Re: Ugly fonts in JWM after upgrade

There are multiple lines where you can set the font in .jwmrc

<!--	┏┳┓┏━╸┏┓╻╻ ╻   ┏━┓╺┳╸╻ ╻╻  ┏━╸	 -->
<!--	┃┃┃┣╸ ┃┗┫┃ ┃   ┗━┓ ┃ ┗┳┛┃  ┣╸ 	 -->
<!--	╹ ╹┗━╸╹ ╹┗━┛   ┗━┛ ╹  ╹ ┗━╸┗━╸	 -->
<MenuStyle>
  <Font>Inconsolata-16:antialias=true:encoding=utf8</Font>
  <Foreground>#ffffff</Foreground>
  <Background>#2b2c2b</Background>
  <Outline>#2b2c2b</Outline>
	<Active>
	  <Foreground>#2b2c2b</Foreground>
	  <Background>#dc6434</Background>
	</Active>
</MenuStyle>

<!--	╻ ╻╻┏┓╻╺┳┓┏━┓╻ ╻   ┏━┓╺┳╸╻ ╻╻  ┏━╸	 -->
<!--	┃╻┃┃┃┗┫ ┃┃┃ ┃┃╻┃   ┗━┓ ┃ ┗┳┛┃  ┣╸ 	 -->
<!--	┗┻┛╹╹ ╹╺┻┛┗━┛┗┻┛   ┗━┛ ╹  ╹ ┗━╸┗━╸	 -->
<WindowStyle decorations="flat">
  <Font align="center">Dejavu-11:antialias=true:encoding=utf8</Font>
  <Width>2</Width>
  <Height>19</Height>
  <Corner>2</Corner>
  <Foreground>#030303</Foreground>
  <Background>#dc6434</Background>
  <Outline>#2b2c2b</Outline>
  <Opacity>1</Opacity>
	<Active>
	  <Foreground>#030303</Foreground>
	  <Background>#feee92</Background>
	  <Outline>#2b2c2b</Outline>
	</Active>
</WindowStyle>

<!--	┏┓ ┏━┓┏━┓   ┏━┓╺┳╸╻ ╻╻  ┏━╸	 -->
<!--	┣┻┓┣━┫┣┳┛   ┗━┓ ┃ ┗┳┛┃  ┣╸ 	 -->
<!--	┗━┛╹ ╹╹┗╸   ┗━┛ ╹  ╹ ┗━╸┗━╸	 -->
<TrayStyle decorations="flat">
  <Font>Inconsolata-11:antialias=true:encoding=utf8</Font>
  <Background>#333333</Background>
  <Foreground>#aaaaaa</Foreground>
  <Outline>#333333</Outline>
	<Active>
	  <Foreground>#333333</Foreground>
	  <Background>#feee92</Background>
	</Active>
</TrayStyle>

<PagerStyle>
  <Font>Dejavu-8:antialias=true:encoding=utf8</Font>
  <Outline>#454947</Outline>
  <Text>#ffffff</Text>
  <Foreground>#454947</Foreground>
  <Background>#565656</Background>
	<Active>
	  <Foreground>#454947</Foreground>
	  <Background>#dc6434</Background>
	</Active>
</PagerStyle>

<ClockStyle>
  <Font>Dejavu-11:weight=demibold:antialias=true:encoding=utf8</Font>
</ClockStyle>

<PopupStyle>
  <Font>Dejavu-10:antialias=true:encoding=utf8</Font>
  <Outline>#323232</Outline>
  <Foreground>#ffffff</Foreground>
  <Background>#323232</Background>
</PopupStyle>

if nothing changes there is probably a syntax error somewhere

Offline

#15 2021-12-06 23:41:50

anticapitalista
Member
Registered: 2018-06-10
Posts: 36  

Re: Ugly fonts in JWM after upgrade

Offline

#16 2021-12-08 13:03:02

JWM-Kit
Member
Registered: 2020-06-29
Posts: 113  
Website

Re: Ugly fonts in JWM after upgrade

I'm going to take a guess that  JWM was built without pango.  You can use the command jwm -v to list the compile options. if pango is not listed then that is the problem. If you compiled it yourself, Install libpango1.0-dev and built it again. If you got the package from a repository I'd suggest submiting a bug report.

Offline

Board footer