mkfontdir(1) X Version 11 (22 September 1989) mkfontdir(1)
NAME
mkfontdir - creates fonts.dir file from the directory of
font files.
SYNOPSIS
mkfontdir [directory-names]
DESCRIPTION
For each directory you specify, mkfontdir reads all of the
font files in that directory and searches for properties
named FONT. Failing that, mkfontdir searches for the name
of the file stripped of its suffix. These are used as font
names, which are written out to the file fonts.dir in the
directory along with the name of the font file.
The kinds of font files mkfontdir reads depends on
configuration parameters, but typically include SNF (suffix
.snf), compressed SNF (suffix .snf.Z), BDF (suffix .bdf),
and compressed BDF (suffix .bdf.Z). If a font exists in
multiple formats, mkfontdir uses the most efficient format.
FONT NAME ALIASES
The fonts.alias file, which you can put in any directory in
the font path, is used to map new names to existing fonts.
You should edit this file by hand. The format consists of
two white-space separated columns; the first contains the
alias and the second contains font-name patterns. For more
information on font-name pattern matching, refer to the X(1)
manual page.
When a font alias is used, mkfontdir searches for it and
looks through each font directory in turn. This means that
the aliases need not mention fonts in the same directory as
the alias file.
To embed white space in either name, simply enclose them in
double quote marks. To embed double quote marks (or any
other special character), precede them with a back-slash:
"magic-alias with spaces" "\"font\name\" with quotes"
regular-alias fixed
If the string FILE_NAMES_ALIASES stands alone on a line,
each file name in the directory (stripped of its .snf
suffix) is be used as an alias for that font.
USAGE
Xsight(1) looks for both fonts.dir and fonts.alias in each
directory in the font path each time it is set (see
xset(1)).
SEE ALSO
Page 1 (printed 10/4/89)
mkfontdir(1) X Version 11 (22 September 1989) mkfontdir(1)
X(1)
xset(1)
Page 2 (printed 10/4/89)