305 lines
7.0 KiB
HTML
305 lines
7.0 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of update-fonts-scale</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>update-fonts-scale</H1>
|
|
Section: Maintenance Commands (8)<BR>Updated: 2004-11-12<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
update-fonts-scale - generate fonts.scale files
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>update-fonts-scale</B>
|
|
|
|
[<I>OPTION</I>]
|
|
<I>directory ...</I>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>update-fonts-scale</B>
|
|
|
|
assembles a
|
|
<I>fonts.scale</I>
|
|
|
|
file in an X font directory using one or more scale 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 package containing scalable fonts usable by the X Window
|
|
System whose X LFD font names are not in the font files themselves, but may
|
|
be invoked at any time to reconstruct
|
|
<I>fonts.scale</I>
|
|
|
|
files.
|
|
For each
|
|
<I>directory</I>,
|
|
|
|
which is either an absolute path to an X font directory or (preferably)
|
|
simply the last component of its path (such as '75dpi' or
|
|
'misc'),
|
|
<B>update-fonts-scale</B>
|
|
|
|
will assemble either
|
|
<I>/usr/lib/X11/fonts/</I>directory<I>/fonts.scale</I>
|
|
|
|
or
|
|
<I>/usr/share/fonts/X11/</I>directory<I>/fonts.scale</I>
|
|
|
|
from the index files found at
|
|
<I>/etc/X11/fonts/</I>directory<I>/</I>package<I>.scale</I>,
|
|
|
|
where
|
|
<I>package</I>
|
|
|
|
is the name of the package installing the fonts.
|
|
<P>
|
|
|
|
This enables multiple packages to provide names for fonts in the same
|
|
directory.
|
|
No font package actually provides the
|
|
<I>fonts.scale</I>
|
|
|
|
file in the X font directory itself, so there is no danger of overwriting
|
|
one package's font names with those of another.
|
|
<P>
|
|
|
|
For instance, the two packages 'xfonts-scalable' (real) and
|
|
'xfonts-nifty' (hypothetical) may both install fonts into the
|
|
directory
|
|
<I>/usr/lib/X11/fonts/Type1</I>.
|
|
|
|
They each place their
|
|
<I>fonts.scale</I>
|
|
|
|
files in
|
|
<I>/etc/X11/fonts/Type1/xfonts-scalable.scale</I>
|
|
|
|
and
|
|
<I>/etc/X11/fonts/Type1/xfonts-nifty.scale</I>
|
|
|
|
(respectively).
|
|
<B>update-fonts-scale</B>
|
|
|
|
concatenates these two files (as well as any others that match
|
|
<I>/etc/X11/fonts/Type1/*.scale</I>)
|
|
|
|
into
|
|
<I>/usr/lib/X11/fonts/Type1/fonts.scale</I>.
|
|
|
|
<P>
|
|
|
|
The format for
|
|
<I>fonts.scale</I>
|
|
|
|
files is given 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-scale</B>
|
|
|
|
in package maintainer scripts is provided in the Debian Policy Manual.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<B>-h</B>, <B>--help</B>
|
|
|
|
displays a brief usage message and exits.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>OPERANDS</H2>
|
|
|
|
<B>update-fonts-scale</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-scale 75dpi</B>
|
|
|
|
</DL>
|
|
|
|
is correct, while
|
|
'<B>update-fonts-scale /usr/X11R6/lib/X11/fonts/75dpi</B>'
|
|
|
|
and
|
|
'<B>update-fonts-scale /usr/lib/X11/fonts/75dpi</B>'
|
|
|
|
are not.
|
|
<A NAME="lbAG"> </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.
|
|
<DT id="3"><B>DEBUG</B>
|
|
|
|
<DD>
|
|
determines whether low-level diagnostic messages are issued to standard error
|
|
output.
|
|
A null (empty) or unset value indicates that they are not, and a non-null
|
|
value indicates that they are.
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>DIAGNOSTICS</H2>
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H3>Errors</H3>
|
|
|
|
<DL COMPACT>
|
|
<DT id="4"><B>usage error: one or more font directories must be provided</B>
|
|
|
|
<DD>
|
|
<B>update-fonts-scale</B>
|
|
|
|
was invoked without operands.
|
|
Supply one or more X font directory names to operate on.
|
|
<DT id="5"><B>usage error: unrecognized option</B>
|
|
|
|
<DD>
|
|
<B>update-fonts-scale</B>
|
|
|
|
was invoked with an unrecognized option argument.
|
|
Use only the options documented in "OPTIONS", above.
|
|
<DT id="6"><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"> </A>
|
|
<H3>Warnings</H3>
|
|
|
|
<DL COMPACT>
|
|
<DT id="7"><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="8"><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-scale</B>
|
|
|
|
skipped it.
|
|
</DL>
|
|
<A NAME="lbAK"> </A>
|
|
<H3>Notes</H3>
|
|
|
|
Notes are only displayed under special circumstances; see "ENVIRONMENT".
|
|
above.
|
|
<DL COMPACT>
|
|
<DT id="9"><B>note: </B><I>index</I><B> references nonexistent font file </B><I>filename</I>
|
|
|
|
<DD>
|
|
The index file
|
|
<I>/etc/X11/fonts/</I>directory<I>/</I>package<I>.scale</I>,
|
|
|
|
refers to a nonexistent font file,
|
|
<I>filename</I>.
|
|
|
|
This is normal when
|
|
<I>package</I>
|
|
|
|
has been removed, but not purged from the system.
|
|
In other circumstances, it likely indicates an error in
|
|
<I>package</I>.
|
|
|
|
</DL>
|
|
<A NAME="lbAL"> </A>
|
|
<H2>EXIT STATUS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="10">0<DD>
|
|
<B>update-fonts-scale</B>
|
|
|
|
ran successfully.
|
|
<DT id="11">1<DD>
|
|
<B>update-fonts-scale</B>
|
|
|
|
experienced a fatal error; see the section on diagnostic messages above.
|
|
<DT id="12">2<DD>
|
|
<B>update-fonts-scale</B>
|
|
|
|
was invoked with invalid arguments.
|
|
</DL>
|
|
<A NAME="lbAM"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
See
|
|
|
|
the Debian Bug Tracking System <URL: <A HREF="https://bugs.debian.org/xfonts-utils">https://bugs.debian.org/xfonts-utils</A> >.
|
|
|
|
If you wish to report a bug in
|
|
<B>update-fonts-scale</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="lbAN"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
<B>update-fonts-scale</B>
|
|
|
|
was written by Branden Robinson.
|
|
<A NAME="lbAO"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1x+mkfontdir">mkfontdir</A></B>(1x)
|
|
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="13"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="14"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="15"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="16"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="17"><A HREF="#lbAF">OPERANDS</A><DD>
|
|
<DT id="18"><A HREF="#lbAG">ENVIRONMENT</A><DD>
|
|
<DT id="19"><A HREF="#lbAH">DIAGNOSTICS</A><DD>
|
|
<DL>
|
|
<DT id="20"><A HREF="#lbAI">Errors</A><DD>
|
|
<DT id="21"><A HREF="#lbAJ">Warnings</A><DD>
|
|
<DT id="22"><A HREF="#lbAK">Notes</A><DD>
|
|
</DL>
|
|
<DT id="23"><A HREF="#lbAL">EXIT STATUS</A><DD>
|
|
<DT id="24"><A HREF="#lbAM">BUGS</A><DD>
|
|
<DT id="25"><A HREF="#lbAN">AUTHOR</A><DD>
|
|
<DT id="26"><A HREF="#lbAO">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>
|