Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: Gentoo Users List <gentoo-user@l.g.o>
Subject: [gentoo-user] How to set up monospaced xterm fonts?
Date: Fri, 20 Nov 2015 00:54:36
1 Lucidasanstypewriter-12 is still my favourite xterm font. A long time
2 ago, it switched from ISO8859-1 to ISO10646. Fortunately, I had 2
3 machines, and salvaged the /usr/share/fonts directory from one, and
4 still insert it in place of whatever portage gives me. I realize that
5 it's an ugly hack, and I'd like to do things the right way. The problem
6 is that I can't figure out how. I'm doing a re-install on a machine, so
7 I can play around a little bit. On the fresh install when I include...
9 /usr/bin/xterm -bg black -fg cyan -geometry +0+0
11 my .xinitrc and launch X manually. The xterm is rather small.
12 When I {CTRL}{RIGHT-CLICK}, the xterm dies and disappears. Meanwhile,
13 on the text console that launched X is the message...
15 Warning: Cannot convert string "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*" to type FontStruct
16 Warning: Unable to load any usable ISO8859 font
17 Warning: Unable to load any usable ISO8859 font
18 Error: Aborting: no font found
20 Note that I did not specify any fonts. My Google-fu didn't help very
21 much. The best suggestions I found were to...
22 a) put all sub-directories in /usr/share/fonts into FontPath statements
23 in xorg.conf
24 b) run "xlsfonts > textfile" and search for a font
26 I found a bunch of 8859-1 fonts, and chose "b&h luxi" fonts (put
27 special characters in the name, why don't you?). I inserted the
28 following into my .xinitrc (backslashes are required).
30 /usr/bin/xterm -bg black -fg cyan -geometry +0+0 -fn -b\&h-luxi\ mono-*-*-*--*-*-*-*-*-*-iso8859-1 &
32 ...and started X. This time the xterm did not die on {CTRL}{RIGHT-CLICK}.
33 Only "Default" font size and "Unreadable" worked properly. All other
34 choices ended up with a middling font size when I cycled through the
35 choices. The text console from which I launched X reported...
37 /usr/bin/xterm: cannot load font '5x7'
38 /usr/bin/xterm: cannot load font '6x10'
39 /usr/bin/xterm: cannot load font '7x13'
40 /usr/bin/xterm: cannot load font '9x15'
41 /usr/bin/xterm: cannot load font '10x20'
43 Some progress, but I'm not there yet. I'm sure people have working
44 setups. Any ideas?
46 --
47 Walter Dnes <waltdnes@××××××××.org>
48 I don't run "desktop environments"; I run useful applications


Subject Author
Re: [gentoo-user] How to set up monospaced xterm fonts? Emanuele Rusconi <emarsk@×××××.com>
[gentoo-user] [SOLVED] How to set up monospaced xterm fonts? Walter Dnes <waltdnes@××××××××.org>