The X terminal comes with a small set of fonts. In the X terminal setup menus and configuration files, these fonts are referred to as 'built-ins'. The terminal can be operated with these fonts alone but more fonts are desirable. Fonts can be added by specifying font paths in X terminal console setup menus, configuration files or by using the xset command.
Once the X server software is running on the X terminal, the font path can modified or queried with the command xset.
To query the X server:
xset -qTo add a font entry:
xset +fp <path>To remove a font entry:
xset -fp <path>
The font server (xfs) runs on a network host and retrieves fonts for the X terminal and other network clients. The font server improves font retrieval time and provides its clients access to more fonts then would otherwise be possible with tftp. Font server software is part of many Linux distributions and has also been incorporated into X consortium software available from ftp.x.org.
To indicate the use of a font server, a tcp service entry is used instead of a font path in the X terminal's host resident configuration file or console setup menu.
Format of tcp service entry:
tcp/<IP address of font server>:<port used by font server>
Example:
tcp/10.0.0.1:7100
An example of an entry in the X terminal configuration file found on the boot host:
xserver-default-font-path = { { "tcp/10.0.0.1:7100" } { "built-ins" } }
The xset command with the tcp service entry can used to add the font server to the path:
xset +fp tcp/10.0.0.1:7100
WARNING: Certain versions of NCDware require the font server entry to be listed first before X terminal 'built-in' fonts. This is contrary to the NCD documentation "System Administrator's Guide for UNIX Systems". Experiment with the order of the font path and verify it with the 'xset q' command.
On the font server host, the server is started at boot time from the rc.local startup script. The font server (xfs) is started with the following command:
xfs -config <config file path> -port <font server port number>
The standard font server port is 7100.
Example:
xfs -config /usr/X11/lib/X11/fs/config -port 7100
Example font server configuration file:
# font server configuration file # $XConsortium: config.cpp,v 1.7 91/08/22 11:39:59 rws Exp $ clone-self = on use-syslog = on catalog = /usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/ error-file = /usr/X11R6/lib/X11/fs/fs-errors # in decipoints default-point-size = 120 default-resolutions = 75,75,100,100