NAME
xfs - X font server
SYNOPSIS
xfs
[-config _c_o_n_f_i_g_u_r_a_t_i_o_n___f_i_l_e]
[-daemon]
[-droppriv]
[-ls _l_i_s_t_e_n___s_o_c_k_e_t]
[-nodaemon]
[-port _t_c_p___p_o_r_t]
[-user _u_s_e_r_n_a_m_e]
DESCRIPTION
Xfs
is the X Window System font server. It supplies fonts to X Window
System display servers.
STARTING THE SERVER
The server is usually run by a system administrator, and started via
boot files like _/_e_t_c_/_r_c_._l_o_c_a_l. Users may also wish to start
private font servers for specific sets of fonts.
OPTIONS
-
-config configuration_file
-
Specifies the configuration file the font server will use. If this
parameter is not specified, the default file, _/_e_t_c_/_X_1_1_/_f_s_/_c_o_n_f_i_g
will be used.
-
-ls listen_socket
-
Specifies a file descriptor which is already set up to be used as the
listen socket. This option is only intended to be used by the font server
itself when automatically spawning another copy of itself to handle
additional connections.
-
-port tcp_port
-
Specifies the TCP port number on which the server will listen for connections.
The default port number is 7100.
-
-daemon
-
Instructs xfs to fork and go into the background automatically at
startup If this option is not specified, xfs will run as a regular
process (unless xfs was built to daemonize by default).
-
-droppriv
-
If specified, xfs will attempt to run as user and group _x_f_s (unless
the
-user
option is used). This
has been implemented for security reasons, as xfs may have undiscovered
buffer overflows or other paths for possible exploit, both local and
remote. With this option, you may also wish to specify
"no-listen = tcp"
in the config file, which ensures that xfs will not to use a TCP port at all.
-
-nodaemon
-
When xfs is built to daemonize (run in the background) by default,
this prevents that and starts xfs up as a regular process.
-
-user username
-
This is equivalent to
-droppriv
except that xfs will run as user _u_s_e_r_n_a_m_e.
SIGNALS
-
SIGTERM
-
This causes the font server to exit cleanly.
-
SIGUSR1
-
This signal is used to cause the server to re-read its configuration file.
-
SIGUSR2
-
This signal is used to cause the server to flush any cached data it
may have.
-
SIGHUP
-
This signal is used to cause the server to reset, closing all active
connections and re-reading the configuration file.
CONFIGURATION
The configuration language is a list of keyword and value pairs.
Each keyword is followed by an '=' and then the desired value.
Recognized keywords include:
-
catalogue (list of string)
Ordered list of font path element names.
-
Use of the keyword "catalogue" is very misleading at present,
the current implementation only supports a single catalogue ("all"),
containing all of the specified fonts.
-
alternate-servers (list of string)
List of alternate servers for this font server.
-
-
client-limit (cardinal)
Number of clients this font server will support
-
before refusing service. This is useful for tuning
the load on each individual font server.
-
clone-self (boolean)
Whether this font server should attempt to clone itself
-
when it reachs the client-limit.
-
default-point-size (cardinal)
The default pointsize (in decipoints) for fonts that
-
don't specify. The default is 120.
-
default-resolutions (list of resolutions)
Resolutions the server supports by default.
-
This information may be used as a hint for
pre-rendering, and substituted for scaled fonts
which do not specify a resolution.
A resolution is a comma-separated pair of x and y resolutions in
pixels per inch.
Multiple resolutions are separated by commas.
-
error-file (string)
Filename of the error file. All warnings and errors
-
will be logged here.
-
no-listen (trans-type)
Disable a transport type. For example, TCP/IP connections can
-
be disabled with no-listen tcp
-
port (cardinal)
TCP port on which the server will listen for connections.
-
-
use-syslog (boolean)
Whether syslog(3) (on supported systems) is to be used
-
for errors.
-
deferglyphs (string)
Set the mode for delayed fetching and caching of glyphs. Value is
-
"none", meaning deferred glyphs is disabled, "all", meaning it is
enabled for all fonts, and "16", meaning it is enabled only for
16-bits fonts.
EXAMPLE
#
# sample font server configuration file
#
# allow a max of 10 clients to connect to this font server
client-limit = 10
# when a font server reaches its limit, start up a new one
clone-self = on
# alternate font servers for clients to use
alternate-servers = hansen:7101,hansen:7102
# where to look for fonts
# the first is a set of Speedo outlines, the second is a set of
# misc bitmaps and the last is a set of 100dpi bitmaps
#
catalogue = /usr/X11R6/lib/X11/fonts/speedo,
/usr/X11R6/lib/X11/fonts/misc,
/usr/X11R6/lib/X11/fonts/100dpi/
# in 12 points, decipoints
default-point-size = 120
# 100 x 100 and 75 x 75
default-resolutions = 100,100,75,75
use-syslog = off
FONT SERVER NAMES
One of the following forms can be used to name a font server that
accepts TCP connections:
tcp/_h_o_s_t_n_a_m_e:_p_o_r_t
tcp/_h_o_s_t_n_a_m_e:_p_o_r_t/_c_a_t_a_l_o_g_u_e_l_i_s_t
The _h_o_s_t_n_a_m_e specifies the name (or decimal numeric address)
of the machine on which the font server is running. The _p_o_r_t
is the decimal TCP port on which the font server is listening for connections.
The _c_a_t_a_l_o_g_u_e_l_i_s_t specifies a list of catalogue names,
with '+' as a separator.
Examples: _t_c_p_/_f_s_._x_._o_r_g_:_7_1_0_0, _t_c_p_/_1_8_._3_0_._0_._2_1_2_:_7_1_0_1_/_a_l_l.
One of the following forms can be used to name a font server that
accepts DECnet connections:
decnet/_n_o_d_e_n_a_m_e::font$_o_b_j_n_a_m_e
decnet/_n_o_d_e_n_a_m_e::font$_o_b_j_n_a_m_e/_c_a_t_a_l_o_g_u_e_l_i_s_t
The _n_o_d_e_n_a_m_e specifies the name (or decimal numeric address)
of the machine on which the font server is running.
The _o_b_j_n_a_m_e is a normal, case-insensitive DECnet object name.
The _c_a_t_a_l_o_g_u_e_l_i_s_t specifies a list of catalogue names,
with '+' as a separator.
Examples: _D_E_C_n_e_t_/_S_R_V_N_O_D_:_:_F_O_N_T_$_D_E_F_A_U_L_T, _d_e_c_n_e_t_/_4_4_._7_0_:_:_f_o_n_t_$_s_p_e_c_i_a_l_/_s_y_m_b_o_l_s.
SEE ALSO
X(7), _T_h_e _X _F_o_n_t _S_e_r_v_i_c_e _P_r_o_t_o_c_o_l,
_F_o_n_t _s_e_r_v_e_r _i_m_p_l_e_m_e_n_t_a_t_i_o_n _o_v_e_r_v_i_e_w
BUGS
Multiple catalogues should be supported.
AUTHORS
Dave Lemke, Network Computing Devices, Inc
Keith Packard, Massachusetts Institute of Technology