Solved x11-fonts/terminus unusable after update, unable to get working with Xorg config

hunter0one

Member

Reaction score: 48
Messages: 30

I'm on FreeBSD 13.0-RELEASE on the quarterly branch, and I use x11-fonts/terminus in the terminal because I think it's quite nice looking for CL use. This morning there was a large packages update, and after completing the upgrade Terminus is no longer seen in Xfce4's Terminal nor any font menu on the system. I tried restarting just in case but that didn't work, so my next point of action was to check the PKG information (pkg info -D terminus-font):

Code:
On install:
Add the following line to the "Files" section of xorg.conf or XF86Config:

    FontPath "/usr/local/share/fonts/terminus-font/"

However, I don't use an xorg.conf specifically, instead I only have a configuration for my RX 580 (amdgpu.conf) to use FreeSync. So I added the following to it (located in /usr/local/etc/X11/xorg.conf.d/amdgpu.conf):

Code:
Section "Files"
FontPath "/usr/local/share/fonts/terminus-font/"
EndSection

On restart, it still doesn't show up. Is this incorrect syntax, do I need to use another .conf (and if so, how do I use two), or is there another solution? Thanks.
 

Tieks

Active Member

Reaction score: 64
Messages: 149

It is indeed installed in /usr/local/share/fonts/terminus-font? Does it show up in your /var/log/Xorg.0.log? It should show something like this:
Code:
[    36.189] (**) FontPath set to:
        /usr/local/share/fonts/100dpi/,
        /usr/local/share/fonts/75dpi/, ...
 

aragats

Daemon

Reaction score: 689
Messages: 1,603

I used to run mkfontdir and/or mkfontscale in that directory to make it recognizable.
 
OP
hunter0one

hunter0one

Member

Reaction score: 48
Messages: 30

It is indeed installed in /usr/local/share/fonts/terminus-font? Does it show up in your /var/log/Xorg.0.log? It should show something like this:
Code:
[    36.189] (**) FontPath set to:
        /usr/local/share/fonts/100dpi/,
        /usr/local/share/fonts/75dpi/, ...
Yes, it's installed there. Here's what shows up in Xorg.0.log:
Code:
[    10.192] (**) FontPath set to:
    /usr/local/share/fonts/terminus-font,
    /usr/local/share/fonts/misc/,
    /usr/local/share/fonts/TTF/,
    /usr/local/share/fonts/OTF/,
    /usr/local/share/fonts/Type1/,
    /usr/local/share/fonts/100dpi/,
    /usr/local/share/fonts/75dpi/,
    catalogue:/usr/local/etc/X11/fontpath.d
[    10.192] (==) ModulePath set to "/usr/local/lib/xorg/modules"

Have you tried, whether running fc-cache does any good? See man fc-cache().
I just tried that now, doesn't seem to do anything. I tried fc-cache -r and then tried to use it in the terminus-font directory. Gives no errors or anything, but it's still not appearing.

I used to run mkfontdir and/or mkfontscale in that directory to make it recognizable.

Just tried this as well. Generated both fonts.dir and fonts.scale, still not appearing. Really not sure what's going on :-/
 

aragats

Daemon

Reaction score: 689
Messages: 1,603

What if you manually add it when X is running?
Code:
xset +fp=/usr/local/share/fonts/terminus-font
xset fp rehash
 

Alain De Vos

Daemon

Reaction score: 545
Messages: 1,888

Code:
fc-list | grep terminus
Gives for me,
Code:
/usr/local/share/fonts/terminus-font/ter-x16n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-112b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-114n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-132b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-122b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-124n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x18n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x28n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x20n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-118b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-116n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x12b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-128b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-120b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x32b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x12n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x22b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x32n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x22n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-116b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-118n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-128n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x18b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-120n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x28b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x20b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-112n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-114b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x16b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-132n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-122n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-124b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x14b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x24b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x14n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x24n.pcf.gz: xos4 Terminus:style=Regular
 
OP
hunter0one

hunter0one

Member

Reaction score: 48
Messages: 30

What if you manually add it when X is running?

Ran xset +fp /usr/local/share/fonts/terminus-font, still no difference.

Code:
fc-list | grep terminus

It gives me the same output:

Code:
/usr/local/share/fonts/terminus-font/ter-x16n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-112b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-114n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-132b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-122b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-124n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x18n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x28n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x20n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-118b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-116n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x12b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-128b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-120b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x32b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x12n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x22b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x32n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x22n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-116b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-118n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-128n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x18b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-120n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x28b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x20b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-112n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-114b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x16b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-132n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-122n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-124b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x14b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x24b.pcf.gz: xos4 Terminus:style=Bold
/usr/local/share/fonts/terminus-font/ter-x14n.pcf.gz: xos4 Terminus:style=Regular
/usr/local/share/fonts/terminus-font/ter-x24n.pcf.gz: xos4 Terminus:style=Regular
 

Alain De Vos

Daemon

Reaction score: 545
Messages: 1,888

I just configured sakura terminal with "xos 4 terminus bold italic". So the font works.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 11,592
Messages: 37,913

Font definitely works. I use it for a lot of things that require a nice looking fixed-width font (shells, editors, etc).
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 11,592
Messages: 37,913

However, I don't use an xorg.conf specifically, instead I only have a configuration for my RX 580 (amdgpu.conf) to use FreeSync. So I added the following to it (located in /usr/local/etc/X11/xorg.conf.d/amdgpu.conf):
The whole point of using xorg.conf.d is so you can use multiple files. So create a /usr/local/etc/X11/xorg.conf.d/fonts.conf and put the definition in there.

and after completing the upgrade Terminus is no longer seen in Xfce4's Terminal nor any font menu on the system.
I typically use x11-fonts/xfontsel to see if a font is there or not.
 
OP
hunter0one

hunter0one

Member

Reaction score: 48
Messages: 30

The whole point of using xorg.conf.d is so you can use multiple files. So create a /usr/local/etc/X11/xorg.conf.d/fonts.conf and put the definition in there.
I did as you said. For some reason it didn't work in Xfce or Fluxbox (which I had used previously) but when I switched desktop environments again Terminus now appears everywhere once more.
Thanks!
 
Top