Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Can't set XTerm font to Terminus
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Chris.B.
n00b
n00b


Joined: 17 Aug 2010
Posts: 40

PostPosted: Tue Aug 21, 2018 3:36 pm    Post subject: Reply with quote

What fontconfig stuff do you have enabled?
Code:
tuvok@vetar /etc/fonts $ eselect fontconfig list | grep '*'
Available fontconfig .conf files (* is enabled):
  [6]   10-hinting-slight.conf *
  [20]  20-unhint-small-vera.conf *
  [22]  30-metric-aliases.conf *
  [23]  40-nonlatin.conf *
  [24]  45-generic.conf *
  [25]  45-latin.conf *
  [26]  49-sansserif.conf *
  [27]  50-user.conf *
  [28]  51-local.conf *
  [32]  60-generic.conf *
  [33]  60-latin.conf *
  [45]  65-fonts-persian.conf *
  [47]  65-nonlatin.conf *
  [65]  69-unifont.conf *
  [67]  70-yes-bitmaps.conf *
  [68]  75-yes-terminus.conf *
  [69]  80-delicious.conf *
  [79]  90-synthetic.conf *


EDIT: funny, I wrote this just before I saw your last post ;)
Back to top
View user's profile Send private message
Chris.B.
n00b
n00b


Joined: 17 Aug 2010
Posts: 40

PostPosted: Tue Aug 21, 2018 3:47 pm    Post subject: Reply with quote

Do I have to restart something after eselect fontconfig enable / disable?
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3699
Location: Dallas area

PostPosted: Tue Aug 21, 2018 3:53 pm    Post subject: Reply with quote

You have to restart xterm.

I just got it to finally accept terminus.
It didn't like the facename option, I had to do it the old fashioned way
Code:
#xterm*faceName: Terminus:style=Normal
#xterm*faceSize: 14
xterm*font:   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-1


Use whatever iso is proper for your language.

It reports properly

Code:
xterm -report-fonts
Loaded VTFonts(default)
   fNorm: -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-1
      all chars:     no
      default char:  46
      direction:     0
      ascent:        12
      descent:       2
      first char:    0
      last char:     255
      maximum-chars: 256
      missing-chars: 5
      present-chars: 251
      min_byte1:     0
      max_byte1:     0
      properties:    22
      min_bounds:
         lbearing: 0
         rbearing: 0
         width:    8
         ascent:   -1
         descent:  -11
      max_bounds:
         lbearing: 3
         rbearing: 8
         width:    8
         ascent:   12
         descent:  2
   fBold: -xos4-Terminus-bold-R-*-*-14-140-72-72-C-80-ISO8859-1
      all chars:     no
      default char:  46
      direction:     0
      ascent:        12
      descent:       2
      first char:    0
      last char:     255
      maximum-chars: 256


You can probably play around with fontconfig in your local settings (exercise left to reader :) ) to override the default settings from using eselect fontconfig.


Edit to add: Some of the defaults affect all programs, like firefox, etc, not just xterm.
Best to try and figure out what's being overridden and change it back in your local config (yes, it's time consuming, but you will understand a lot when done)
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3699
Location: Dallas area

PostPosted: Tue Aug 21, 2018 4:07 pm    Post subject: Reply with quote

I've set my eselect fontconfig back to how it was.

and using the correct iso entry for .Xresources seems to work with xterm showing a nice clean terminus font.

So, part of the problem is it doesn't like facename, because if I'm reading it right, terminus isn't a freetype font, it's an old fashioned bit-mapped font.
If ubuntu works then it works because of some default not because of facename.

(I could be wrong on the above but in playing with it, that's the conclusions I've come up with).
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Chris.B.
n00b
n00b


Joined: 17 Aug 2010
Posts: 40

PostPosted: Tue Aug 21, 2018 4:19 pm    Post subject: Reply with quote

Anon-E-moose wrote:
I've set my eselect fontconfig back to how it was.

and using the correct iso entry for .Xresources seems to work with xterm showing a nice clean terminus font.

Doesn't seem to work here, at least trying with this:
Code:
xterm*font: -xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso10646-1


It's actually worse, somewhere along the way terminus dropped out of xfontsel, can't see it there anymore...
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3699
Location: Dallas area

PostPosted: Tue Aug 21, 2018 4:24 pm    Post subject: Reply with quote

is there an entry for terminus in "eselect fontconfig list"

if so is it enabled?

I know in 4.38 they didn't install the file for it to be selected, and they did in 4.40 but I don't know about 4.39*

Edit to add: I don't use xfontsel, so I'm not sure how it works.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Chris.B.
n00b
n00b


Joined: 17 Aug 2010
Posts: 40

PostPosted: Tue Aug 21, 2018 4:34 pm    Post subject: Reply with quote

Yes, 75-yes-terminus.conf is enabled.

xfontsel basically lets you... select font ;)
In the first menu (fndry) I could select xos4 and then terminus in the next, but it disappeared... wonder why! :/

Reinstalled terminus 4.46 to check, but it doesn't show up either, so there is yet another variable in this puzzle...
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3699
Location: Dallas area

PostPosted: Tue Aug 21, 2018 4:39 pm    Post subject: Reply with quote

What I meant about xfontsel, is where it goes looking to find all the fonts, I'm not sure if it uses the fc-cache or something else.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Chris.B.
n00b
n00b


Joined: 17 Aug 2010
Posts: 40

PostPosted: Tue Aug 21, 2018 4:42 pm    Post subject: Reply with quote

Oh, ok.

Should terminus show up in xlsfonts output? And if so, why it doesn't here? :D
I do have it on fc-list now, that's the only place.

EDIT:
also there is this xfd tool to display font, it either takes font name with -fn - tried to put there the string I got out of xfontsel once:
Code:
tuvok@vetar ~ $ xfd -fn "-xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso10646-1"Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso10646-1" to type FontStruct
xfd:  no font to display


On the other hand if I use -fa option it starts up, and displays.... "Liberation Sans-12" :D
So just like xterm did
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3699
Location: Dallas area

PostPosted: Tue Aug 21, 2018 4:49 pm    Post subject: Reply with quote

Chris.B. wrote:
Oh, ok.

Should terminus show up in xlsfonts output? And if so, why it doesn't here? :D


It should show up,
Code:
xlsfonts|grep terminus|grep 10646|grep 14-
-xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso10646-1
-xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1

_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3699
Location: Dallas area

PostPosted: Tue Aug 21, 2018 4:57 pm    Post subject: Reply with quote

Maybe a hint here https://forums.gentoo.org/viewtopic-t-980884-start-0.html

or google "fonts not showing in xlsfonts"
there are lots of hits, but some are for different binary distros and have to be adapted to gentoo.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Chris.B.
n00b
n00b


Joined: 17 Aug 2010
Posts: 40

PostPosted: Tue Aug 21, 2018 5:10 pm    Post subject: Reply with quote

That helped a bit. I added terminus directory:
Code:
xset +fp /usr/share/fonts/terminus
xset fp rehash


Now I have the font in xlsfont, xfontsel and xfd. But when I start both:
Code:
xfd -fn "-xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso10646-1" &
xterm -fn "-xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-1" &

both have different fonts. xfd has correct terminus font, xterm has who knows what :/
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1636
Location: United Kingdom

PostPosted: Tue Aug 21, 2018 5:17 pm    Post subject: Reply with quote

One of my machines has Lubuntu (Ubuntu with LXDE instead of GNOME) 18.04 installed, and I notice it has a file /etc/X11/fonts/misc/xfonts-terminus.alias containing:

Code:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Run the command `update-fonts-alias misc' if you edit this file. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!
terminus-12   -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso10646-1
terminus-14   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1
terminus-16   -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso10646-1
terminus-18   -xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso10646-1
terminus-20   -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso10646-1
terminus-22   -xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso10646-1
terminus-24   -xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso10646-1
terminus-28   -xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso10646-1
terminus-32   -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso10646-1
terminus-bold-12   -xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso10646-1
terminus-bold-14   -xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso10646-1
terminus-bold-16   -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso10646-1
terminus-bold-18   -xos4-terminus-bold-r-normal--18-180-72-72-c-100-iso10646-1
terminus-bold-20   -xos4-terminus-bold-r-normal--20-200-72-72-c-100-iso10646-1
terminus-bold-22   -xos4-terminus-bold-r-normal--22-220-72-72-c-110-iso10646-1
terminus-bold-24   -xos4-terminus-bold-r-normal--24-240-72-72-c-120-iso10646-1
terminus-bold-28   -xos4-terminus-bold-r-normal--28-280-72-72-c-140-iso10646-1
terminus-bold-32   -xos4-terminus-bold-r-normal--32-320-72-72-c-160-iso10646-1
terminus-cp1251-12   -xos4-terminus-medium-r-normal--12-120-72-72-c-60-microsoft-cp1251
terminus-cp1251-14   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-microsoft-cp1251
terminus-cp1251-16   -xos4-terminus-medium-r-normal--16-160-72-72-c-80-microsoft-cp1251
terminus-cp1251-18   -xos4-terminus-medium-r-normal--18-180-72-72-c-100-microsoft-cp1251
terminus-cp1251-20   -xos4-terminus-medium-r-normal--20-200-72-72-c-100-microsoft-cp1251
terminus-cp1251-22   -xos4-terminus-medium-r-normal--22-220-72-72-c-110-microsoft-cp1251
terminus-cp1251-24   -xos4-terminus-medium-r-normal--24-240-72-72-c-120-microsoft-cp1251
terminus-cp1251-28   -xos4-terminus-medium-r-normal--28-280-72-72-c-140-microsoft-cp1251
terminus-cp1251-32   -xos4-terminus-medium-r-normal--32-320-72-72-c-160-microsoft-cp1251
terminus-cp1251-bold-12   -xos4-terminus-bold-r-normal--12-120-72-72-c-60-microsoft-cp1251
terminus-cp1251-bold-14   -xos4-terminus-bold-r-normal--14-140-72-72-c-80-microsoft-cp1251
terminus-cp1251-bold-16   -xos4-terminus-bold-r-normal--16-160-72-72-c-80-microsoft-cp1251
terminus-cp1251-bold-18   -xos4-terminus-bold-r-normal--18-180-72-72-c-100-microsoft-cp1251
terminus-cp1251-bold-20   -xos4-terminus-bold-r-normal--20-200-72-72-c-100-microsoft-cp1251
terminus-cp1251-bold-22   -xos4-terminus-bold-r-normal--22-220-72-72-c-110-microsoft-cp1251
terminus-cp1251-bold-24   -xos4-terminus-bold-r-normal--24-240-72-72-c-120-microsoft-cp1251
terminus-cp1251-bold-28   -xos4-terminus-bold-r-normal--28-280-72-72-c-140-microsoft-cp1251
terminus-cp1251-bold-32   -xos4-terminus-bold-r-normal--32-320-72-72-c-160-microsoft-cp1251
terminus-pt154-12   -xos4-terminus-medium-r-normal--12-120-72-72-c-60-paratype-pt154
terminus-pt154-14   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-paratype-pt154
terminus-pt154-16   -xos4-terminus-medium-r-normal--16-160-72-72-c-80-paratype-pt154
terminus-pt154-18   -xos4-terminus-medium-r-normal--18-180-72-72-c-100-paratype-pt154
terminus-pt154-20   -xos4-terminus-medium-r-normal--20-200-72-72-c-100-paratype-pt154
terminus-pt154-22   -xos4-terminus-medium-r-normal--22-220-72-72-c-110-paratype-pt154
terminus-pt154-24   -xos4-terminus-medium-r-normal--24-240-72-72-c-120-paratype-pt154
terminus-pt154-28   -xos4-terminus-medium-r-normal--28-280-72-72-c-140-paratype-pt154
terminus-pt154-32   -xos4-terminus-medium-r-normal--32-320-72-72-c-160-paratype-pt154
terminus-pt154-bold-12   -xos4-terminus-bold-r-normal--12-120-72-72-c-60-paratype-pt154
terminus-pt154-bold-14   -xos4-terminus-bold-r-normal--14-140-72-72-c-80-paratype-pt154
terminus-pt154-bold-16   -xos4-terminus-bold-r-normal--16-160-72-72-c-80-paratype-pt154
terminus-pt154-bold-18   -xos4-terminus-bold-r-normal--18-180-72-72-c-100-paratype-pt154
terminus-pt154-bold-20   -xos4-terminus-bold-r-normal--20-200-72-72-c-100-paratype-pt154
terminus-pt154-bold-22   -xos4-terminus-bold-r-normal--22-220-72-72-c-110-paratype-pt154
terminus-pt154-bold-24   -xos4-terminus-bold-r-normal--24-240-72-72-c-120-paratype-pt154
terminus-pt154-bold-28   -xos4-terminus-bold-r-normal--28-280-72-72-c-140-paratype-pt154
terminus-pt154-bold-32   -xos4-terminus-bold-r-normal--32-320-72-72-c-160-paratype-pt154
terminus-koi8-r-12   -xos4-terminus-medium-r-normal--12-120-72-72-c-60-koi8-r
terminus-koi8-r-14   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-koi8-r
terminus-koi8-r-16   -xos4-terminus-medium-r-normal--16-160-72-72-c-80-koi8-r
terminus-koi8-r-18   -xos4-terminus-medium-r-normal--18-180-72-72-c-100-koi8-r
terminus-koi8-r-20   -xos4-terminus-medium-r-normal--20-200-72-72-c-100-koi8-r
terminus-koi8-r-22   -xos4-terminus-medium-r-normal--22-220-72-72-c-110-koi8-r
terminus-koi8-r-24   -xos4-terminus-medium-r-normal--24-240-72-72-c-120-koi8-r
terminus-koi8-r-28   -xos4-terminus-medium-r-normal--28-280-72-72-c-140-koi8-r
terminus-koi8-r-32   -xos4-terminus-medium-r-normal--32-320-72-72-c-160-koi8-r
terminus-koi8-r-bold-12   -xos4-terminus-bold-r-normal--12-120-72-72-c-60-koi8-r
terminus-koi8-r-bold-14   -xos4-terminus-bold-r-normal--14-140-72-72-c-80-koi8-r
terminus-koi8-r-bold-16   -xos4-terminus-bold-r-normal--16-160-72-72-c-80-koi8-r
terminus-koi8-r-bold-18   -xos4-terminus-bold-r-normal--18-180-72-72-c-100-koi8-r
terminus-koi8-r-bold-20   -xos4-terminus-bold-r-normal--20-200-72-72-c-100-koi8-r
terminus-koi8-r-bold-22   -xos4-terminus-bold-r-normal--22-220-72-72-c-110-koi8-r
terminus-koi8-r-bold-24   -xos4-terminus-bold-r-normal--24-240-72-72-c-120-koi8-r
terminus-koi8-r-bold-28   -xos4-terminus-bold-r-normal--28-280-72-72-c-140-koi8-r
terminus-koi8-r-bold-32   -xos4-terminus-bold-r-normal--32-320-72-72-c-160-koi8-r
terminus-koi8-u-12   -xos4-terminus-medium-r-normal--12-120-72-72-c-60-koi8-u
terminus-koi8-u-14   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-koi8-u
terminus-koi8-u-16   -xos4-terminus-medium-r-normal--16-160-72-72-c-80-koi8-u
terminus-koi8-u-18   -xos4-terminus-medium-r-normal--18-180-72-72-c-100-koi8-u
terminus-koi8-u-20   -xos4-terminus-medium-r-normal--20-200-72-72-c-100-koi8-u
terminus-koi8-u-22   -xos4-terminus-medium-r-normal--22-220-72-72-c-110-koi8-u
terminus-koi8-u-24   -xos4-terminus-medium-r-normal--24-240-72-72-c-120-koi8-u
terminus-koi8-u-28   -xos4-terminus-medium-r-normal--28-280-72-72-c-140-koi8-u
terminus-koi8-u-32   -xos4-terminus-medium-r-normal--32-320-72-72-c-160-koi8-u
terminus-koi8-u-bold-12   -xos4-terminus-bold-r-normal--12-120-72-72-c-60-koi8-u
terminus-koi8-u-bold-14   -xos4-terminus-bold-r-normal--14-140-72-72-c-80-koi8-u
terminus-koi8-u-bold-16   -xos4-terminus-bold-r-normal--16-160-72-72-c-80-koi8-u
terminus-koi8-u-bold-18   -xos4-terminus-bold-r-normal--18-180-72-72-c-100-koi8-u
terminus-koi8-u-bold-20   -xos4-terminus-bold-r-normal--20-200-72-72-c-100-koi8-u
terminus-koi8-u-bold-22   -xos4-terminus-bold-r-normal--22-220-72-72-c-110-koi8-u
terminus-koi8-u-bold-24   -xos4-terminus-bold-r-normal--24-240-72-72-c-120-koi8-u
terminus-koi8-u-bold-28   -xos4-terminus-bold-r-normal--28-280-72-72-c-140-koi8-u
terminus-koi8-u-bold-32   -xos4-terminus-bold-r-normal--32-320-72-72-c-160-koi8-u
terminus-iso8859-1-12   -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-1
terminus-iso8859-1-14   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-1
terminus-iso8859-1-16   -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso8859-1
terminus-iso8859-1-18   -xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso8859-1
terminus-iso8859-1-20   -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso8859-1
terminus-iso8859-1-22   -xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso8859-1
terminus-iso8859-1-24   -xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso8859-1
terminus-iso8859-1-28   -xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso8859-1
terminus-iso8859-1-32   -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso8859-1
terminus-iso8859-1-bold-12   -xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso8859-1
terminus-iso8859-1-bold-14   -xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso8859-1
terminus-iso8859-1-bold-16   -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso8859-1
terminus-iso8859-1-bold-18   -xos4-terminus-bold-r-normal--18-180-72-72-c-100-iso8859-1
terminus-iso8859-1-bold-20   -xos4-terminus-bold-r-normal--20-200-72-72-c-100-iso8859-1
terminus-iso8859-1-bold-22   -xos4-terminus-bold-r-normal--22-220-72-72-c-110-iso8859-1
terminus-iso8859-1-bold-24   -xos4-terminus-bold-r-normal--24-240-72-72-c-120-iso8859-1
terminus-iso8859-1-bold-28   -xos4-terminus-bold-r-normal--28-280-72-72-c-140-iso8859-1
terminus-iso8859-1-bold-32   -xos4-terminus-bold-r-normal--32-320-72-72-c-160-iso8859-1
terminus-iso8859-2-12   -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-2
terminus-iso8859-2-14   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-2
terminus-iso8859-2-16   -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso8859-2
terminus-iso8859-2-18   -xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso8859-2
terminus-iso8859-2-20   -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso8859-2
terminus-iso8859-2-22   -xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso8859-2
terminus-iso8859-2-24   -xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso8859-2
terminus-iso8859-2-28   -xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso8859-2
terminus-iso8859-2-32   -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso8859-2
terminus-iso8859-2-bold-12   -xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso8859-2
terminus-iso8859-2-bold-14   -xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso8859-2
terminus-iso8859-2-bold-16   -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso8859-2
terminus-iso8859-2-bold-18   -xos4-terminus-bold-r-normal--18-180-72-72-c-100-iso8859-2
terminus-iso8859-2-bold-20   -xos4-terminus-bold-r-normal--20-200-72-72-c-100-iso8859-2
terminus-iso8859-2-bold-22   -xos4-terminus-bold-r-normal--22-220-72-72-c-110-iso8859-2
terminus-iso8859-2-bold-24   -xos4-terminus-bold-r-normal--24-240-72-72-c-120-iso8859-2
terminus-iso8859-2-bold-28   -xos4-terminus-bold-r-normal--28-280-72-72-c-140-iso8859-2
terminus-iso8859-2-bold-32   -xos4-terminus-bold-r-normal--32-320-72-72-c-160-iso8859-2
terminus-iso8859-5-12   -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-5
terminus-iso8859-5-14   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-5
terminus-iso8859-5-16   -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso8859-5
terminus-iso8859-5-18   -xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso8859-5
terminus-iso8859-5-20   -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso8859-5
terminus-iso8859-5-22   -xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso8859-5
terminus-iso8859-5-24   -xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso8859-5
terminus-iso8859-5-28   -xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso8859-5
terminus-iso8859-5-32   -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso8859-5
terminus-iso8859-5-bold-12   -xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso8859-5
terminus-iso8859-5-bold-14   -xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso8859-5
terminus-iso8859-5-bold-16   -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso8859-5
terminus-iso8859-5-bold-18   -xos4-terminus-bold-r-normal--18-180-72-72-c-100-iso8859-5
terminus-iso8859-5-bold-20   -xos4-terminus-bold-r-normal--20-200-72-72-c-100-iso8859-5
terminus-iso8859-5-bold-22   -xos4-terminus-bold-r-normal--22-220-72-72-c-110-iso8859-5
terminus-iso8859-5-bold-24   -xos4-terminus-bold-r-normal--24-240-72-72-c-120-iso8859-5
terminus-iso8859-5-bold-28   -xos4-terminus-bold-r-normal--28-280-72-72-c-140-iso8859-5
terminus-iso8859-5-bold-32   -xos4-terminus-bold-r-normal--32-320-72-72-c-160-iso8859-5
terminus-iso8859-7-12   -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-7
terminus-iso8859-7-14   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-7
terminus-iso8859-7-16   -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso8859-7
terminus-iso8859-7-18   -xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso8859-7
terminus-iso8859-7-20   -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso8859-7
terminus-iso8859-7-22   -xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso8859-7
terminus-iso8859-7-24   -xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso8859-7
terminus-iso8859-7-28   -xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso8859-7
terminus-iso8859-7-32   -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso8859-7
terminus-iso8859-7-bold-12   -xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso8859-7
terminus-iso8859-7-bold-14   -xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso8859-7
terminus-iso8859-7-bold-16   -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso8859-7
terminus-iso8859-7-bold-18   -xos4-terminus-bold-r-normal--18-180-72-72-c-100-iso8859-7
terminus-iso8859-7-bold-20   -xos4-terminus-bold-r-normal--20-200-72-72-c-100-iso8859-7
terminus-iso8859-7-bold-22   -xos4-terminus-bold-r-normal--22-220-72-72-c-110-iso8859-7
terminus-iso8859-7-bold-24   -xos4-terminus-bold-r-normal--24-240-72-72-c-120-iso8859-7
terminus-iso8859-7-bold-28   -xos4-terminus-bold-r-normal--28-280-72-72-c-140-iso8859-7
terminus-iso8859-7-bold-32   -xos4-terminus-bold-r-normal--32-320-72-72-c-160-iso8859-7
terminus-iso8859-9-12   -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-9
terminus-iso8859-9-14   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-9
terminus-iso8859-9-16   -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso8859-9
terminus-iso8859-9-18   -xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso8859-9
terminus-iso8859-9-20   -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso8859-9
terminus-iso8859-9-22   -xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso8859-9
terminus-iso8859-9-24   -xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso8859-9
terminus-iso8859-9-28   -xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso8859-9
terminus-iso8859-9-32   -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso8859-9
terminus-iso8859-9-bold-12   -xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso8859-9
terminus-iso8859-9-bold-14   -xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso8859-9
terminus-iso8859-9-bold-16   -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso8859-9
terminus-iso8859-9-bold-18   -xos4-terminus-bold-r-normal--18-180-72-72-c-100-iso8859-9
terminus-iso8859-9-bold-20   -xos4-terminus-bold-r-normal--20-200-72-72-c-100-iso8859-9
terminus-iso8859-9-bold-22   -xos4-terminus-bold-r-normal--22-220-72-72-c-110-iso8859-9
terminus-iso8859-9-bold-24   -xos4-terminus-bold-r-normal--24-240-72-72-c-120-iso8859-9
terminus-iso8859-9-bold-28   -xos4-terminus-bold-r-normal--28-280-72-72-c-140-iso8859-9
terminus-iso8859-9-bold-32   -xos4-terminus-bold-r-normal--32-320-72-72-c-160-iso8859-9
terminus-iso8859-13-12   -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-13
terminus-iso8859-13-14   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-13
terminus-iso8859-13-16   -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso8859-13
terminus-iso8859-13-18   -xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso8859-13
terminus-iso8859-13-20   -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso8859-13
terminus-iso8859-13-22   -xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso8859-13
terminus-iso8859-13-24   -xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso8859-13
terminus-iso8859-13-28   -xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso8859-13
terminus-iso8859-13-32   -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso8859-13
terminus-iso8859-13-bold-12   -xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso8859-13
terminus-iso8859-13-bold-14   -xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso8859-13
terminus-iso8859-13-bold-16   -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso8859-13
terminus-iso8859-13-bold-18   -xos4-terminus-bold-r-normal--18-180-72-72-c-100-iso8859-13
terminus-iso8859-13-bold-20   -xos4-terminus-bold-r-normal--20-200-72-72-c-100-iso8859-13
terminus-iso8859-13-bold-22   -xos4-terminus-bold-r-normal--22-220-72-72-c-110-iso8859-13
terminus-iso8859-13-bold-24   -xos4-terminus-bold-r-normal--24-240-72-72-c-120-iso8859-13
terminus-iso8859-13-bold-28   -xos4-terminus-bold-r-normal--28-280-72-72-c-140-iso8859-13
terminus-iso8859-13-bold-32   -xos4-terminus-bold-r-normal--32-320-72-72-c-160-iso8859-13
terminus-iso8859-15-12   -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-15
terminus-iso8859-15-14   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-15
terminus-iso8859-15-16   -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso8859-15
terminus-iso8859-15-18   -xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso8859-15
terminus-iso8859-15-20   -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso8859-15
terminus-iso8859-15-22   -xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso8859-15
terminus-iso8859-15-24   -xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso8859-15
terminus-iso8859-15-28   -xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso8859-15
terminus-iso8859-15-32   -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso8859-15
terminus-iso8859-15-bold-12   -xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso8859-15
terminus-iso8859-15-bold-14   -xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso8859-15
terminus-iso8859-15-bold-16   -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso8859-15
terminus-iso8859-15-bold-18   -xos4-terminus-bold-r-normal--18-180-72-72-c-100-iso8859-15
terminus-iso8859-15-bold-20   -xos4-terminus-bold-r-normal--20-200-72-72-c-100-iso8859-15
terminus-iso8859-15-bold-22   -xos4-terminus-bold-r-normal--22-220-72-72-c-110-iso8859-15
terminus-iso8859-15-bold-24   -xos4-terminus-bold-r-normal--24-240-72-72-c-120-iso8859-15
terminus-iso8859-15-bold-28   -xos4-terminus-bold-r-normal--28-280-72-72-c-140-iso8859-15
terminus-iso8859-15-bold-32   -xos4-terminus-bold-r-normal--32-320-72-72-c-160-iso8859-15
terminus-iso8859-16-12   -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-16
terminus-iso8859-16-14   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-16
terminus-iso8859-16-16   -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso8859-16
terminus-iso8859-16-18   -xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso8859-16
terminus-iso8859-16-20   -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso8859-16
terminus-iso8859-16-22   -xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso8859-16
terminus-iso8859-16-24   -xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso8859-16
terminus-iso8859-16-28   -xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso8859-16
terminus-iso8859-16-32   -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso8859-16
terminus-iso8859-16-bold-12   -xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso8859-16
terminus-iso8859-16-bold-14   -xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso8859-16
terminus-iso8859-16-bold-16   -xos4-terminus-bold-r-normal--16-160-72-72-c-80-iso8859-16
terminus-iso8859-16-bold-18   -xos4-terminus-bold-r-normal--18-180-72-72-c-100-iso8859-16
terminus-iso8859-16-bold-20   -xos4-terminus-bold-r-normal--20-200-72-72-c-100-iso8859-16
terminus-iso8859-16-bold-22   -xos4-terminus-bold-r-normal--22-220-72-72-c-110-iso8859-16
terminus-iso8859-16-bold-24   -xos4-terminus-bold-r-normal--24-240-72-72-c-120-iso8859-16
terminus-iso8859-16-bold-28   -xos4-terminus-bold-r-normal--28-280-72-72-c-140-iso8859-16
terminus-iso8859-16-bold-32   -xos4-terminus-bold-r-normal--32-320-72-72-c-160-iso8859-16

:roll:
_________________
Clevo W230SS: amd64 OpenRC elogind nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 OpenRC elogind xf86-video-ati. Dual boot Win 7 Pro 64-bit.
KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Chris.B.
n00b
n00b


Joined: 17 Aug 2010
Posts: 40

PostPosted: Tue Aug 21, 2018 5:27 pm    Post subject: Reply with quote

Hmm, Gentoo seems to install similar stuff with package media-fonts/font-alias, but (obviously) not for terminus
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3699
Location: Dallas area

PostPosted: Tue Aug 21, 2018 5:39 pm    Post subject: Reply with quote

Chris.B. wrote:
That helped a bit. I added terminus directory:
Now I have the font in xlsfont, xfontsel and xfd. But when I start both:
Code:
xfd -fn "-xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso10646-1" &
xterm -fn "-xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-1" &

both have different fonts. xfd has correct terminus font, xterm has who knows what :/


does terminus still show up in fc-list?

edit to add: what shows up when you do "fc-match terminus"
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon


Last edited by Anon-E-moose on Tue Aug 21, 2018 5:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3699
Location: Dallas area

PostPosted: Tue Aug 21, 2018 5:40 pm    Post subject: Reply with quote

Alias files are easy to create, I do them by hand, because I don't care about 90% of the fonts.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3699
Location: Dallas area

PostPosted: Tue Aug 21, 2018 6:00 pm    Post subject: Reply with quote

This might just solve some of the problems

was doing some googling and found this link in someone complaining about terminus fonts https://lists.nongnu.org/archive/html/freetype/2017-01/msg00020.html

Code:
As a workaround I have added the following to my ~/.config/fontconfig/fonts.conf:


   <!-- Workaround for
        https://lists.nongnu.org/archive/html/freetype/2017-01/msg00019.html
   -->
   <alias>
     <family>Terminus</family>
     <prefer><family>xos4 Terminus</family></prefer>
   </alias>


Try using the facename/size again with the above workaround, it seems to work for me.


Edit to add: I'm going to guess that ubuntu patched their version of fontconfig so that the above alias wasn't necessary OR they're applying the alias somewhere so that just using "Terminus" works properly.

On a side note, once I added the alias, using xterm*font didn't work right, but using facename did. *shrugs*
so
in .Xresources
xterm*faceName: Terminus:style=Bold --- worked
xterm*font: -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-1 -- didn't work used another font (don't know why)

from command line
xterm -fn "-xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-1" -- worked
xterm -fa "Terminus" -fs 14 -- worked also worked with :style=Bold
xterm -fn ter-7x14 (from alias file) -- worked

Code:
cat /usr/share/fonts/terminus/fonts.alias
ter-7x14   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-1
ter-7x14x   -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1

_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Chris.B.
n00b
n00b


Joined: 17 Aug 2010
Posts: 40

PostPosted: Tue Aug 21, 2018 7:15 pm    Post subject: Reply with quote

Jeeez, I (almost*) made it. I can't believe that it is that stupid, and that I didn't notice earlier.

Original Ubuntu configuration was:
Code:
xterm*faceName: Terminus:style=Bold
xterm*faceSize: 14


That didn't work on Gentoo.

I tried the xos4-* font name syntax to set it up, both some time ago and today. And since the configuration was for font size 14 I selected:
Code:
-xos4-terminus-bold-r-normal--14-140-72-72-c-80-iso8859-1

And it looked like crap, at first look nothing like the terminus should look like.

Today I decided to try this syntax on the Ubuntu VM. I started xterm with the original configuration from Xresources, then commented that out, reloaded xrdb and started xterm from another terminal with the xos4 string above. And turns out it looked as crappy as on Gentoo :/

After some fine-tuning I came up with
Code:
-xos4-terminus-bold-r-normal--18-180-72-72-c-100-iso10646-1

and this actually looks (almost*) like it should.

So much time wasted :(

almost - because it seems Terminology ignores bold fonts, but that's not important.

Anyway, thank you all for lots of help in navigating this territory, especially to Anon-E-moose, I would probably give up on this long time ago without your guidance.
Back to top
View user's profile Send private message
Chris.B.
n00b
n00b


Joined: 17 Aug 2010
Posts: 40

PostPosted: Tue Aug 21, 2018 7:38 pm    Post subject: Reply with quote

Anon-E-moose wrote:
This might just solve some of the problems

was doing some googling and found this link in someone complaining about terminus fonts https://lists.nongnu.org/archive/html/freetype/2017-01/msg00020.html

Code:
As a workaround I have added the following to my ~/.config/fontconfig/fonts.conf:


   <!-- Workaround for
        https://lists.nongnu.org/archive/html/freetype/2017-01/msg00019.html
   -->
   <alias>
     <family>Terminus</family>
     <prefer><family>xos4 Terminus</family></prefer>
   </alias>


Try using the facename/size again with the above workaround, it seems to work for me.


Seemed like a better idea than my last try (previous post sent moments ago), so I tried. I cant believe the results I get, it's insane ;)

Here's the pic with comparison, specifically look at how boldness is handled:
http://oi67.tinypic.com/2lcr8ud.jpg

Your solution works exactly like in Terminology, it leaves out the boldness. This is insane...
Back to top
View user's profile Send private message
proteusx
Apprentice
Apprentice


Joined: 21 Jan 2008
Posts: 228

PostPosted: Tue Aug 21, 2018 8:54 pm    Post subject: Reply with quote

I just saw this.
I use xterm with the terminus font
here is how I specify it within my .Xdefaults.

Code:
XTerm*faceName:xos4\ Terminus
XTerm*faceSize:12
XTerm*background:black
XTerm*foreground:white


Code:
~ $ fc-match xos4\ Terminus
ter-x12n.pcf.gz: "xos4 Terminus" "Regular"

Also, I have masked >=media-libs/fontconfig-2.13.0 because it somehow fails to provide bitmap fonts.

P.S. I can also start xterm from the command line with a larger font size:
Code:
$ xterm -fa xos4\ Terminus -fs 16
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3699
Location: Dallas area

PostPosted: Tue Aug 21, 2018 9:02 pm    Post subject: Reply with quote

Thanks, proteusx

When I finally googled enough it became clear that that's was going on, the old fontconfig "Terminus" would have worked,
then along the way fontconfig got changed and "xos4 " had to be in front of it or aliased away.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum