So the question is, how do I go about searching for an appropriate font?
I know of the existence of xlsfonts and xlsfonts -ll <pattern> prints
output which is probably relevant but I don't know how to interpret it.
Apart from interpreting it, is there some tool which you can instruct
to "show me all the fonts on the system for which parameters such and
such are within certain bounds"
I see that the xterm I'm running is started with the options
(among others) -fa 'DejaVu Sans Mono:size=20'
-fn -adobe-courier-bold-r-normal--25-180-100-100-m-150-iso10646-1 .
The man page is not clear enough to me whether both are relevant to
the output I'm seeing or one overrides the other.
-fa pattern
If you specify both -fa and the X Toolkit option -fn,
the -fa setting overrides the latter.
I have a Debian installation where -adobe-courier-bold-r-normal--25-180-100-100-m-150-iso10646-1 is just
right for terminal emulators ; I want a monospace font of course and
the size is right. But with a new Devuan installation , this font is
a bit too small.
So the question is , how do I go about searching for
an appropriate font ?
Message-ID: <g31lq0F33olU1@mid.individual.net>
[...]
So the question is, how do I go about searching for an appropriate font?
I think the tool you're looking for is xfontsel(1). You may also
find xfd(1) handy.
I know of the existence of xlsfonts and xlsfonts -ll <pattern> prints output which is probably relevant but I don't know how to interpret it.
(I believe xlsfonts needs -fn to specify a pattern.)
I see that the xterm I'm running is started with the options
(among others) -fa 'DejaVu Sans Mono:size=20'
-fn -adobe-courier-bold-r-normal--25-180-100-100-m-150-iso10646-1 .
The man page is not clear enough to me whether both are relevant to
the output I'm seeing or one overrides the other.
It's pretty clear in the copy I have at hand:
-fa pattern
If you specify both -fa and the X Toolkit option -fn,
the -fa setting overrides the latter.
FWIW, my long-time preference is to use Terminus fonts, the
X version of which is provided by the xfonts-terminus package.
Depending on the X display resolution, they can be configured
as follows in XRDB (which typically gets initialized from
~/.Xresources at the X session initialization time.) See also
http://bugs.debian.org/685329 .
!! Smaller fonts XTerm.VT100.font2:-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso10646-1
XTerm.VT100.font: -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1
XTerm.VT100.font3:-xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso10646-1
XTerm.VT100.font4:-xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso10646-1
XTerm.VT100.font5:-xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso10646-1
XTerm.VT100.font6:-xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso10646-1
!! Larger fonts XTerm.VT100.font2:-xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso10646-1
XTerm.VT100.font: -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso10646-1
XTerm.VT100.font3:-xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso10646-1
XTerm.VT100.font4:-xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso10646-1
XTerm.VT100.font5:-xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso10646-1
XTerm.VT100.font6:-xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso10646-1
I have a Debian installation where -adobe-courier-bold-r-normal--25-180-100-100-m-150-iso10646-1 is just
right for terminal emulators ; I want a monospace font of course and
the size is right. But with a new Devuan installation , this font is
a bit too small. So the question is , how do I go about searching for
an appropriate font ? I know of the existence of xlsfonts and
xlsfonts -ll <pattern> prints output which is probably relevant but
I don't know how to interpret it.
Spiros Bousbouras <spibou@gmail.com> wrote:
I have a Debian installation where -adobe-courier-bold-r-normal--25-180-100-100-m-150-iso10646-1 is just right for terminal emulators ; I want a monospace font of course and
the size is right. But with a new Devuan installation , this font is
a bit too small.
If you are using multiple distros you can override the system fonts
and have a font directories in your $HOME:
MYFONTDIR=${HOME}/local/share/fonts
mkdir -p ${MYFONTDIR}
I don't think that I was seeing different sizes because the system ignored
my font specification so overriding system fonts would not help.
!! Smaller fonts
XTerm.VT100.font2:-xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso10646-1
XTerm.VT100.font: -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1
XTerm.VT100.font3:-xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso10646-1
XTerm.VT100.font4:-xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso10646-1
XTerm.VT100.font5:-xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso10646-1
XTerm.VT100.font6:-xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso10646-1
!! Larger fonts
XTerm.VT100.font2:-xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso10646-1
XTerm.VT100.font: -xos4-terminus-medium-r-normal--20-200-72-72-c-100-iso10646-1
XTerm.VT100.font3:-xos4-terminus-medium-r-normal--22-220-72-72-c-110-iso10646-1
XTerm.VT100.font4:-xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso10646-1
XTerm.VT100.font5:-xos4-terminus-medium-r-normal--28-280-72-72-c-140-iso10646-1
XTerm.VT100.font6:-xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso10646-1
How do you distinguish between large and small ? Because some fonts appear on both lists above.
On 2023-06-27, Spiros Bousbouras wrote:
On Sun, 25 Jun 2023 18:27:55 +0000, Ivan Shmakov wrote:
(I believe xlsfonts needs -fn to specify a pattern.)
Looking at the man page more carefully , you are correct. However
xlsfonts -ll -fn '*adobe-courier-bold-r-normal--25-180-100-100-m-150-iso10646-1'
xlsfonts -ll '*adobe-courier-bold-r-normal--25-180-100-100-m-150-iso10646-1'
I see that the xterm I'm running is started with the options
(among others) -fa 'DejaVu Sans Mono:size=20'
-fn -adobe-courier-bold-r-normal--25-180-100-100-m-150-iso10646-1 .
How do you distinguish between large and small? Because some fonts
appear on both lists above.
Ideally, XTerm should've allowed an arbitrary number of fonts
here (with some users preferring switching between just two or
three, others using a set that includes not only different font
sizes, but different actual fonts as well; such as by including
-misc-fixed- alongside -xos4-terminus-), but it doesn't seem to
be doable in a nice and clean way with libXt and X resources.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 335 |
Nodes: | 16 (2 / 14) |
Uptime: | 148:49:13 |
Calls: | 7,411 |
Calls today: | 1 |
Files: | 12,670 |
Messages: | 5,613,179 |