Prev | Current Page 227 | Next

Chris Tyler

"X Power Tools"

3 Using a Font Server
Font server technology was added to X so that catalogs of fonts could easily be made
available to large numbers of desktop systems. Large font catalogs can be gigabytes
in size, and centralized font storage can result in significant storage savings over replicated
local font storage. The use of a font server for scalable fonts also reduces the
size of the X server, and enables fonts to be rendered in parallel with X server tasks
on a multi-processor system.
Although several font servers have been written, the xfs font server distributed with
X is the one most commonly used. Some operating systems and distributions set up
xfs by default, while others prefer local font directories; for example, Fedora uses xfs,
while SUSE and Debian/Ubuntu install with a file-based configuration.
xfs has a configuration file, usually located at /etc/X11/fs/config. Here is the Fedora
version:
#
# xfs 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 = foo:7101,bar:7102
# where to look for fonts
catalogue = /usr/share/X11/fonts/misc:unscaled,
/usr/share/X11/fonts/75dpi:unscaled,
/usr/share/X11/fonts/100dpi:unscaled,
/usr/share/X11/fonts/Type1,
/usr/share/X11/fonts/TTF,
/usr/share/fonts/default/Type1,
# in 12 points, decipoints
default-point-size = 120
# 75 x 75 and 100 x 100
default-resolutions = 75,75,100,100
# use lazy loading on 16 bit fonts
deferglyphs = 16
10.


Pages:
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239