man-pages/man8/update-fonts-alias.8.html
2021-03-31 01:06:50 +01:00

270 lines
6.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of update-fonts-alias</TITLE>
</HEAD><BODY>
<H1>update-fonts-alias</H1>
Section: Maintenance Commands (8)<BR>Updated: 2004-11-11<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
update-fonts-alias - compile fonts.alias files
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>update-fonts-alias</B>
[<I>OPTION</I>]
<I>directory ...</I>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>update-fonts-alias</B>
assembles a
<I>fonts.alias</I>
file in an X font directory using one or more alias files found in a
subdirectory of
<I>/etc/X11/fonts/</I>.
It is typically invoked only from the post-installation and post-removal
scripts of a
<I>package</I>
containing X Window System fonts that provide aliases for their XLFD names,
but may be invoked at any time to reconstruct
<I>fonts.alias</I>
files.
For each
<I>directory</I>,
which is simply the last component of its path (such as '75dpi' or
'misc'),
<B>update-fonts-alias</B>
will assemble either
<I>/usr/lib/X11/fonts/</I>directory<I>/fonts.alias</I>
or
<I>/usr/share/fonts/X11/</I>directory<I>/fonts.alias</I>
from the files found in
<I>/etc/X11/fonts/</I>directory<I>/</I>package<I>.alias</I>.
<P>
This enables multiple packages to provide aliases for fonts in the same
directory.
No font package actually provides the
<I>fonts.alias</I>
file in the X font directory itself, so there is no danger of overwriting
one package's aliases with those of another.
<P>
For instance, the two packages 'xfonts-base' and
'xfonts-base-transcoded' may both install fonts into the directory
<I>/usr/lib/X11/fonts/misc</I>.
They each place their
<I>fonts.alias</I>
files in
<I>/etc/X11/fonts/misc/xfonts-base.alias</I>
and
<I>/etc/X11/fonts/misc/xfonts-base-transcoded.alias</I>
(respectively).
<B>update-fonts-alias</B>
concatenates these two files (as well as any others that match
<I>/etc/X11/fonts/misc/*.alias</I>)
into
<I>/usr/lib/X11/fonts/misc/fonts.alias</I>.
<P>
The format of
<I>fonts.alias</I>
files is described in the
<B><A HREF="/cgi-bin/man/man2html?1x+mkfontdir">mkfontdir</A></B>(1x)
manual page.
<P>
An example of how to use
<B>update-fonts-alias</B>
in package maintainer scripts is provided in the Debian Policy Manual.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<B>-h</B>, <B>--help</B>
displays a brief usage message and exits.
<A NAME="lbAF">&nbsp;</A>
<H2>OPERANDS</H2>
<B>update-fonts-alias</B>
takes one or more X font directory names to operate on as operands.
Only the final path component of the directory name should be specified;
e.g.,
<DL COMPACT><DT id="1"><DD>
<B>update-fonts-alias 75dpi</B>
</DL>
is correct, while
'<B>update-fonts-alias /usr/X11R6/lib/X11/fonts/75dpi</B>'
and
'<B>update-fonts-alias /usr/lib/X11/fonts/75dpi</B>'
are not.
<A NAME="lbAG">&nbsp;</A>
<H2>ENVIRONMENT</H2>
<DL COMPACT>
<DT id="2"><B>COLUMNS</B>
<DD>
indicates the width of the terminal device in character cells.
This value is used for formatting diagnostic messages.
If not set, the terminal is queried using
<B><A HREF="/cgi-bin/man/man2html?1+stty">stty</A></B>(1)
to determine its width.
If that fails, a value of '80' is assumed.
</DL>
<A NAME="lbAH">&nbsp;</A>
<H2>DIAGNOSTICS</H2>
<A NAME="lbAI">&nbsp;</A>
<H3>Errors</H3>
<DL COMPACT>
<DT id="3"><B>usage error: one or more font directories must be provided</B>
<DD>
<B>update-fonts-alias</B>
was invoked without operands.
Supply one or more X font directory names to operate on.
<DT id="4"><B>usage error: unrecognized option</B>
<DD>
<B>update-fonts-alias</B>
was invoked with an unrecognized option argument.
Use only the options documented in "OPTIONS", above.
<DT id="5"><B>fatal error: path to X font directory must be used</B>
<DD>
A directory name was supplied that was not an X font directory name.
Supply X font directory names only.
</DL>
<A NAME="lbAJ">&nbsp;</A>
<H3>Warnings</H3>
<DL COMPACT>
<DT id="6"><B>warning: absolute path </B><I>directory</I><B> was provided</B>
<DD>
Usage of absolute paths is deprecated.
Use only the final component of the X font directory name for
<I>directory</I>.
<DT id="7"><B>warning: </B><I>directory</I><B> does not exist or is not a directory</B>
<DD>
The supplied
<I>directory</I>
was invalid.
<B>update-fonts-alias</B>
skipped it.
</DL>
<A NAME="lbAK">&nbsp;</A>
<H2>EXIT STATUS</H2>
<DL COMPACT>
<DT id="8">0<DD>
<B>update-fonts-alias</B>
ran successfully.
<DT id="9">1<DD>
<B>update-fonts-alias</B>
experienced a fatal error; see the section on diagnostic messages above.
<DT id="10">2<DD>
<B>update-fonts-alias</B>
was invoked with invalid arguments.
</DL>
<A NAME="lbAL">&nbsp;</A>
<H2>BUGS</H2>
See
the Debian Bug Tracking System &lt;URL: <A HREF="https://bugs.debian.org/xfonts-utils">https://bugs.debian.org/xfonts-utils</A> &gt;.
If you wish to report a bug in
<B>update-fonts-alias</B>,
please see
<I>/usr/share/doc/debian/bug-reporting.txt</I>
or the
<B><A HREF="/cgi-bin/man/man2html?1+reportbug">reportbug</A></B>(1)
command.
<A NAME="lbAM">&nbsp;</A>
<H2>AUTHOR</H2>
<B>update-fonts-alias</B>
was written by Branden Robinson.
<A NAME="lbAN">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?1x+mkfontdir">mkfontdir</A></B>(1x)
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="11"><A HREF="#lbAB">NAME</A><DD>
<DT id="12"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="13"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="14"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="15"><A HREF="#lbAF">OPERANDS</A><DD>
<DT id="16"><A HREF="#lbAG">ENVIRONMENT</A><DD>
<DT id="17"><A HREF="#lbAH">DIAGNOSTICS</A><DD>
<DL>
<DT id="18"><A HREF="#lbAI">Errors</A><DD>
<DT id="19"><A HREF="#lbAJ">Warnings</A><DD>
</DL>
<DT id="20"><A HREF="#lbAK">EXIT STATUS</A><DD>
<DT id="21"><A HREF="#lbAL">BUGS</A><DD>
<DT id="22"><A HREF="#lbAM">AUTHOR</A><DD>
<DT id="23"><A HREF="#lbAN">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:18 GMT, March 31, 2021
</BODY>
</HTML>