138 lines
4.0 KiB
HTML
138 lines
4.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
|
|
<TITLE> NCD X terminal mini HOWTO: Fonts and the X terminal</TITLE>
|
|
<LINK HREF="NCD-X-Terminal-7.html" REL=next>
|
|
<LINK HREF="NCD-X-Terminal-5.html" REL=previous>
|
|
<LINK HREF="NCD-X-Terminal.html#toc6" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="NCD-X-Terminal-7.html">Next</A>
|
|
<A HREF="NCD-X-Terminal-5.html">Previous</A>
|
|
<A HREF="NCD-X-Terminal.html#toc6">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s6">6. Fonts and the X terminal</A></H2>
|
|
|
|
<P>The X terminal comes with a small set of fonts. In the X terminal setup
|
|
menus and configuration files, these fonts are referred to as
|
|
'built-ins'. The terminal can be operated with these fonts alone but more
|
|
fonts are desirable. Fonts can be added by specifying font paths in
|
|
X terminal console setup menus, configuration files or by using the xset
|
|
command.
|
|
<P>
|
|
<P>Once the X server software is running on the X terminal, the font path can
|
|
modified or queried with the command xset.
|
|
<P>To query the X server:
|
|
<PRE>
|
|
xset -q
|
|
</PRE>
|
|
|
|
To add a font entry:
|
|
<PRE>
|
|
xset +fp <path>
|
|
</PRE>
|
|
|
|
To remove a font entry:
|
|
<PRE>
|
|
xset -fp <path>
|
|
</PRE>
|
|
<P>
|
|
<H2><A NAME="ss6.1">6.1 The font server</A>
|
|
</H2>
|
|
|
|
<P>The font server (xfs) runs on a network host and retrieves fonts for the X
|
|
terminal and other network clients. Use of the font server allows the use
|
|
of a wide variety of fonts as the X server software is otherwise
|
|
restricted to bitmap fonts. During retrieval, the font server can
|
|
uncompress, scale and convert fonts for the X server and can help
|
|
simplify the management of fonts for groups of terminals and network
|
|
clients. Font server software is part of many Linux distributions and has
|
|
been incorporated into X consortium software available from
|
|
<A HREF="ftp://ftp.x.org">ftp.x.org</A>.
|
|
<P>To indicate the use of a font server, a tcp service entry is used instead
|
|
of a font path in the X terminal's host resident configuration file or
|
|
console setup menu.
|
|
<P>Format of tcp service entry:
|
|
<PRE>
|
|
tcp/<IP address of font server>:<port used by font server>
|
|
</PRE>
|
|
<P>Example:
|
|
<PRE>
|
|
tcp/10.0.0.1:7100
|
|
</PRE>
|
|
<P>
|
|
<P>An example of an entry in the X terminal configuration file found on the
|
|
boot host:
|
|
<P>
|
|
<PRE>
|
|
xserver-default-font-path = {
|
|
{ "tcp/10.0.0.1:7100" }
|
|
{ "built-ins" }
|
|
}
|
|
</PRE>
|
|
<P>The xset command with the tcp service entry can used to add the font server
|
|
to the path:
|
|
<P>
|
|
<PRE>
|
|
xset +fp tcp/10.0.0.1:7100
|
|
</PRE>
|
|
<P>
|
|
<P>WARNING: Certain versions of NCDware require the font server entry to be
|
|
listed first before X terminal 'built-in' fonts. This is contrary to the
|
|
NCD documentation "System Administrator's Guide for UNIX Systems".
|
|
Experiment with the order of the font path and verify it with the
|
|
'xset q' command.
|
|
<P>
|
|
<P>On the font server host, the server is started at boot time from the
|
|
rc.local startup script. The font server (xfs) is started with the
|
|
following command:
|
|
<P>
|
|
<PRE>
|
|
xfs -config <config file path> -port <font server port number>
|
|
</PRE>
|
|
<P>The standard font server port is 7100.
|
|
<P>Example:
|
|
<P>
|
|
<PRE>
|
|
xfs -config /usr/X11/lib/X11/fs/config -port 7100
|
|
</PRE>
|
|
<P>
|
|
<P>Example font server configuration file:
|
|
<P>
|
|
<PRE>
|
|
# 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 client limit, start up a new one
|
|
clone-self = on
|
|
|
|
# use the UNIX syslog utility to log errors.
|
|
use-syslog = on
|
|
|
|
# list of font directories
|
|
catalogue = /usr/X11R6/lib/X11/fonts/misc/,
|
|
/usr/X11R6/lib/X11/fonts/Speedo/,
|
|
/usr/X11R6/lib/X11/fonts/Type1/,
|
|
/usr/X11R6/lib/X11/fonts/75dpi/,
|
|
/usr/X11R6/lib/X11/fonts/100dpi/
|
|
|
|
# file used to log errors if syslog is not used.
|
|
error-file = /usr/X11R6/lib/X11/fs/fs-errors
|
|
|
|
# 12 point in decipoints
|
|
default-point-size = 120
|
|
|
|
# 100 x 100 and 75 x 75
|
|
default-resolutions = 75,75,100,100
|
|
</PRE>
|
|
<P>
|
|
<HR>
|
|
<A HREF="NCD-X-Terminal-7.html">Next</A>
|
|
<A HREF="NCD-X-Terminal-5.html">Previous</A>
|
|
<A HREF="NCD-X-Terminal.html#toc6">Contents</A>
|
|
</BODY>
|
|
</HTML>
|