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

D

Deleted member 67862

Guest
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.
 
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/, ...
 
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 :-/
 
What if you manually add it when X is running?
Code:
xset +fp=/usr/local/share/fonts/terminus-font
xset fp rehash
 
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
 
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
 
Font definitely works. I use it for a lot of things that require a nice looking fixed-width font (shells, editors, etc).
 
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.
 
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!
 
Looks I have exactly the same problem. The difference is I haven't figured out how to get the terminus back for xfce-terminal. Obviously terminus is recognized because xterm uses it just fine.
Any clue?
 
Looks I have exactly the same problem. The difference is I haven't figured out how to get the terminus back for xfce-terminal. Obviously terminus is recognized because xterm uses it just fine.
Any clue?
Xfce's terminal seems to be incapable of using bitmap fonts, because I have the same issue with it. Xterm works, but using something like Xfce I would prefer the Xfce terminal.
 
In my case, xfce terminal used to be able to load all the fonts under /user/local/share/fonts, including terminus. At some point, I think since a pkg upgrade, many fonts are missing from xfce terminal.

Xfce's terminal seems to be incapable of using bitmap fonts, because I have the same issue with it. Xterm works, but using something like Xfce I would prefer the Xfce terminal.
 
Back
Top