1XFS(1)                      General Commands Manual                     XFS(1)
2
3
4

NAME

6       xfs - X font server
7

SYNOPSIS

9       xfs   [-config  configuration_file]  [-daemon]  [-droppriv]  [-ls  lis‐
10       ten_socket] [-nodaemon] [-port tcp_port] [-user username]
11

DESCRIPTION

13       Xfs is the X Window System font server.  It supplies fonts to X  Window
14       System display servers.
15

STARTING THE SERVER

17       The  server  is  usually run by a system administrator, and started via
18       boot files like /etc/rc.local.  Users may also wish  to  start  private
19       font servers for specific sets of fonts.
20

OPTIONS

22       -config configuration_file
23               Specifies  the configuration file the font server will use.  If
24               this  parameter   is   not   specified,   the   default   file,
25               /etc/X11/fs/config will be used.
26
27       -ls listen_socket
28               Specifies  a file descriptor which is already set up to be used
29               as the listen socket.  This option is only intended to be  used
30               by  the  font server itself when automatically spawning another
31               copy of itself to handle additional connections.
32
33       -port tcp_port
34               Specifies the TCP port number on which the server  will  listen
35               for connections.  The default port number is 7100.
36
37       -daemon Instructs  xfs to fork and go into the background automatically
38               at startup  If this option is not specified, xfs will run as  a
39               regular process (unless xfs was built to daemonize by default).
40
41       -droppriv
42               If  specified,  xfs  will  attempt to run as user and group xfs
43               (unless the -user option is used). This  has  been  implemented
44               for security reasons, as xfs may have undiscovered buffer over‐
45               flows or other paths  for  possible  exploit,  both  local  and
46               remote.   With  this  option, you may also wish to specify "no-
47               listen = tcp" in the config file, which ensures that  xfs  will
48               not to use a TCP port at all.
49
50       -nodaemon
51               When  xfs  is  built  to  daemonize  (run in the background) by
52               default, this prevents that and starts  xfs  up  as  a  regular
53               process.
54
55       -user username
56               This  is  equivalent  to  -droppriv except that xfs will run as
57               user username.
58

SIGNALS

60       SIGTERM This causes the font server to exit cleanly.
61
62       SIGUSR1 This signal is used to cause the server to re-read its configu‐
63               ration file.
64
65       SIGUSR2 This  signal  is  used  to cause the server to flush any cached
66               data it may have.
67
68       SIGHUP  This signal is used to cause the server to reset,  closing  all
69               active connections and re-reading the configuration file.
70

CONFIGURATION

72       The  configuration language is a list of keyword and value pairs.  Each
73       keyword is followed by an '=' and then the desired value.
74
75       Recognized keywords include:
76
77
78       catalogue (list of string)
79              Ordered list of font path element names.  The current  implemen‐
80              tation  only  supports a single catalogue ("all") containing all
81              of the specified fonts. A special  directory  with  symlinks  to
82              font  paths  can be specified using a catalogue:<dir> entry. See
83              the CATALOGUE DIR section below for details.
84
85       alternate-servers (list of string)
86              List of alternate servers for this font server.
87
88       client-limit (cardinal)
89              Number of clients this font server will support before  refusing
90              service.   This is useful for tuning the load on each individual
91              font server.
92
93       clone-self (boolean)
94              Whether this font server should attempt to clone itself when  it
95              reachs the client-limit.
96
97       default-point-size (cardinal)
98              The default pointsize (in decipoints) for fonts that don't spec‐
99              ify.  The default is 120.
100
101       default-resolutions (list of resolutions)
102              Resolutions the server supports by  default.   This  information
103              may  be  used  as  a hint for pre-rendering, and substituted for
104              scaled fonts which do not specify a resolution.  A resolution is
105              a  comma-separated  pair  of  x  and y resolutions in pixels per
106              inch.  Multiple resolutions are separated by commas.
107
108       error-file (string)
109              Filename of the error file.  All warnings  and  errors  will  be
110              logged here.
111
112       no-listen (trans-type)
113              Disable  a  transport  type. For example, TCP/IP connections can
114              be disabled with no-listen tcp
115
116       port (cardinal)
117              TCP port on which the server will listen for connections.
118
119       use-syslog (boolean)
120              Whether syslog(3) (on supported  systems)  is  to  be  used  for
121              errors.
122
123       deferglyphs (string)
124              Set  the mode for delayed fetching and caching of glyphs.  Value
125              is "none", meaning deferred glyphs is disabled,  "all",  meaning
126              it  is  enabled  for  all fonts, and "16", meaning it is enabled
127              only for 16-bits fonts.
128

CATALOGUE DIR

130       You can specify  a  special  kind  of  font  path  in  the  form  cata‐
131       logue:<dir>.   The directory specified after the catalogue: prefix will
132       be scanned for symlinks and each symlink destination will be added as a
133       local fontfile FPE.
134
135       The  symlink  can  be  suffixed by attributes such as 'unscaled', which
136       will be passed through to the underlying fontfile FPE. The only  excep‐
137       tion  is  the  newly introduced 'pri' attribute, which will be used for
138       ordering the font paths specified by the symlinks.
139
140       An example configuration:
141
142           75dpi:unscaled:pri=20 -> /usr/share/X11/fonts/75dpi
143           ghostscript:pri=60 -> /usr/share/fonts/default/ghostscript
144           misc:unscaled:pri=10 -> /usr/share/X11/fonts/misc
145           type1:pri=40 -> /usr/share/X11/fonts/Type1
146           type1:pri=50 -> /usr/share/fonts/default/Type1
147
148       This will add /usr/share/X11/fonts/misc  as  the  first  FPE  with  the
149       attribute  the  attribute unscaled etc. This is functionally equivalent
150       to setting the following font path:
151
152           /usr/share/X11/fonts/misc:unscaled,
153           /usr/share/X11/fonts/75dpi:unscaled,
154           /usr/share/X11/fonts/Type1,
155           /usr/share/fonts/default/Type1,
156           /usr/share/fonts/default/ghostscript
157

EXAMPLE

159       #
160       # sample font server configuration file
161       #
162
163       # allow a max of 10 clients to connect to this font server
164       client-limit = 10
165
166       # when a font server reaches its limit, start up a new one
167       clone-self = on
168
169       # alternate font servers for clients to use
170       alternate-servers = hansen:7101,hansen:7102
171
172       # where to look for fonts
173       # the first is a set of Speedo outlines, the second is a set of
174       # misc bitmaps and the last is a set of 100dpi bitmaps
175       #
176       catalogue = /usr/X11R6/lib/X11/fonts/speedo,
177            /usr/X11R6/lib/X11/fonts/misc,
178            /usr/X11R6/lib/X11/fonts/100dpi/
179
180       # in 12 points, decipoints
181       default-point-size = 120
182
183       # 100 x 100 and 75 x 75
184       default-resolutions = 100,100,75,75
185       use-syslog = off
186
187

FONT SERVER NAMES

189       One of the following forms can be used  to  name  a  font  server  that
190       accepts TCP connections:
191
192           tcp/hostname:port
193           tcp/hostname:port/cataloguelist
194
195       The  hostname  specifies  the  name (or decimal numeric address) of the
196       machine on which the font server is running.  The port is  the  decimal
197       TCP  port  on  which the font server is listening for connections.  The
198       cataloguelist specifies a list of catalogue names, with '+' as a  sepa‐
199       rator.
200
201       Examples: tcp/fs.x.org:7100, tcp/18.30.0.212:7101/all.
202
203       One  of  the  following  forms  can  be used to name a font server that
204       accepts DECnet connections:
205
206           decnet/nodename::font$objname
207           decnet/nodename::font$objname/cataloguelist
208
209       The nodename specifies the name (or decimal  numeric  address)  of  the
210       machine  on which the font server is running.  The objname is a normal,
211       case-insensitive DECnet object name.   The  cataloguelist  specifies  a
212       list of catalogue names, with '+' as a separator.
213
214       Examples:  DECnet/SRVNOD::FONT$DEFAULT, decnet/44.70::font$special/sym‐
215       bols.
216

SEE ALSO

218       X(7), The X Font Service Protocol,
219       Font server implementation overview
220

BUGS

222       Multiple catalogues should be supported.
223

AUTHORS

225       Dave Lemke, Network Computing Devices, Inc
226       Keith Packard, Massachusetts Institute of Technology
227
228
229
230X Version 11                       xfs 1.0.5                            XFS(1)
Impressum