
108 Chapter 7. X Servers and Clients
7.5.1. xfs Configuration
The /etc/rc.d/init.d/xfs script starts the xfs server. Several options can be configured in the
/etc/X11/fs/config file:
• alternate-servers — Sets a list of alternate font servers to be used if this font server is not
available. A comma must separate every font server in the list.
• catalogue — An ordered list of font paths to use that contain the font files. A comma must follow
every font path before a new font path can be started in the list.
You can use the string :unscaled immediately after the font path to make the unscaled fonts in
that path load first. Then, you can specify the entire path again, so that other scaled fonts will also
be loaded.
• client-limit — Sets the number of clients this font server will service before refusing to handle
any more. The default is 10.
• clone-self — Decides if the font server will clone a new version of itself when the client-
limit is hit. By default, this option is on. Set it to off to disable this feature.
• default-point-size — Sets the default point size for any font that does not specify this value.
The value for this option is set in decipoints. The default of 120 corresponds to 12 point fonts.
• default-resolutions — Specifies a list of resolutions supported by the XFree86 server. Each
resolution in the list must be separated by a comma.
• deferglyphs — Tells xfs whether to defer the loading of glyphs, which is an image used to
visually represent a font. You can disable this feature (none), enable this feature for all fonts (all),
or turn this this feature on only for 16-bit fonts (16), which are largely used with Asian languages.
• error-file — Allows you to specify the path and file name of a locations where xfs errors can
be logged.
• no-listen — Tells xfs not to listen using a particular protocol. By default, this option is set to
tcp to prevent xfs from listening on TCP ports, primarily for security reasons. If you plan on using
xfs to serve fonts to networked workstations on a LAN, you need to remove the tcp from this line.
• port — Specifies the TCP port that xfs will listen on if no-listen does not exist or is commented
out.
• use-syslog — Tells xfs to use the system error log if set to on.
7.5.2. Adding Fonts
When using xfs, adding fonts to your system is rather straightforward. Use the chkfontpath --
list command to see the font paths currently configured on your system. To add new fonts in a new
directory, follow these instructions as the root user:
1. Create a font directory, such as /usr/share/fonts and place the fonts inside that directory.
Be sure to set the permissions correctly; it is only necessary that the files can be read, no other
permissions are necessary.
2. Type the chkfontpath --add
font-directory-path command, where the font-
directory-path is the full path to the directory holding the fonts. This will add this font
path to the xfs configuration file.
Commenti su questo manuale