This chapter tells you how to access fonts from various sources.
When you start your Netstation, it searches for fonts on its font path. Later, when a specific font is requested, it is downloaded using the preferred font access mechanism.
Your Netstation can access a font if:
.snf
or .pcf
).
For information about accessing fonts, see:
For information about font problems, see Solving Font-Related Problems.
For information about memory and performance considerations, see Using Font Caching and Glyph Caching.
/opt/hpxt/enware2/xthome/fonts/iso_8859.1/75dpi /opt/hpxt/enware2/xthome/fonts/iso_8859.1/100dpi /opt/hpxt/enware2/xthome/fonts/hp_roman8/75dpi /opt/hpxt/enware2/xthome/fonts/misc /usr/dt/config/xfonts/C
/opt/hpxt/enware2/xthome/fonts/Xol
/opt/hpxt/enware2/xthome/fonts/hp_japanese/100dpi /opt/hpxt/enware2/xthome/fonts/hp_japanese/75dpi
For Sun systems, the Japanese fonts are actually installed; for other systems, only a pointer to the workstation fonts is installed.
misc
or hp_roman8
from the font path as these
directories contain fonts required by HP host-based and local clients.
Rather than install the fonts from HP Netstation Software, you may decide to set up the Netstation to use fonts already installed on the workstation. By using workstation fonts, you can save a considerable amount of disk space.
Workstation fonts are installed in the following directories:
/usr/lib/X11/fonts
/usr/lib/X11/fonts/iso_8859.1
(HP-UX only)
/usr/openwin/lib/X11/fonts
(Sun only)
/usr/dt/config/xfonts/$LANG
(with CDE installed)
To use the workstation's fonts:
When you set the font path, generally you will change a path element
such as ./fonts/hp_roman8/75dpi/
to ./fonts/iso_8859.1/75dpi/
(the .
in ./fonts
indicates the path
relative to /opt/hpxt/enware2/xthome
.)
xset
command.
Refer to the man page for xset
for details.
Remote Config
parameter is ON.
(This parameter corresponds to the Download on Next Reboot
button
on the Terminal - Remote Config configuration screen.)
/opt/hpxt/enware2/xthome
/config
/
terminalname.cfg
for each Netstation.
Font Path
keywords and edit
the font path to show the new directories.
For the FontPath parameter, you cannot use variables such as $(BasePath)
.
To set the font path from the configuration screens:
[F12]
to access the
configuration screens.
[X Server]
, then [Font Path]
.
If you have access to a font server, use it as the preferred method for accessing the fonts you need.
If you do not have access to a font server, use
NFS rather than TFTP if possible.
Before your Netstations can use NFS, you need to have NFS running on the
file server and you need to have your Netstations configured into
/etc/exports
.
If NFS was running on your file server when you installed
your Netstations, your Netstations were added to /etc/exports
automatically and can access the workstation's fonts now.
If you do not have NFS installed on your system, refer to the HP Netstation Software
installation instructions to learn how to start it.
If you have a font server on your network, you can save about 600 KB of Netstation memory by setting your font path to use the font server. (A font server ships standard with all HP-UX 9.x and 10.x systems.) For information about setting up the font server itself, refer to the documentation that came with your host machine.
To set up your Netstation to use a font server, do the following:
[F12]
to access the configuration screens.
[X Server]
, then [Font Path]
.
[Backspace]
key to remove all of the font path entries
except ./fonts/builtin
.
tcp/
hostname:
ipportnumber[/cataloglist]
where:
+
separated list of catalogs (in other words,
font types).
For example, on HP-UX systems:
tcp/25.7.1.15:7000
(You would not normally specify a /cataloglist.)
Your changes will take effect the next time you reset or reboot your Netstation.
This section explains how you can use fonts from other sources such as external applications. Topics include:
To install new fonts not already on the workstation or installed from HP Netstation Software, follow the steps listed below:
To create a new directory for the fonts:
inetd.conf
.
Once you have made the font directory, add a fonts.alias
file to
the new directory.
The fonts.alias
file must contain the following line:
"FILE_NAMES_ALIASES"This line allows files to be called by their filenames (without the
.pcf
or .snf
extension).
For example, you can use courBO10
to specify
the font that has the filename
courBO10.snf
.
If the fonts are available in .pcf
, .scf
,
or .snf
format,
copy the files to the new directory.
These fonts can be used as they are.
If a font is available only in .bdf
format,
it must be compiled before you can use it.
To do this, you can use a utility such as bdftopcf
.
If the /usr/openwin/bin/convertfont
program is available on your
Sun system,
you can use this program to convert a font that is available
in a non-standard format to an X11-standard format.
Each font directory must contain a fonts.dir
file.
The fonts.dir
file lists all of the fonts in the
directory in which it is located, and maps
the font names used by clients to font files.
The Netstation requires this map to be able to access the font files.
Once you have added fonts to a directory,
run the mkfontdir
program to create a new fonts.dir
file.
The command syntax is:
mkfontdir
path.
For example, to create a fonts.dir
file for
the app
font directory, type:
mkfontdir
/opt/hpxt/enware2/xthome
/fonts
/app
For SunOS 4.x systems, you may need to enter the following:
/opt/hpxt/enware2/bin/mkfontdir
In this step you change your font path to include the new font directory. The new font directory must be in the X server's font path. To add a directory to the font path:
In this step you check that the new fonts have been added by using xlsfonts
as follows:
xlsfonts
fontname
For example: xlsfonts *10x20*
/opt/hpxt/enware2/xthome
/fonts
/app
font directory.
.bdf
source file is located and type:
bdftopcf new.bdf > /opt/hpxt/enware2/xthome/fonts/app/new.pcf
fonts.dir
file by typing:
mkfontdir
/opt/hpxt/enware2/xthome
/fonts
/app
app
to the font path by editing the Default Font Path field
on the X Server - Font Path configuration
screen: /opt/hpxt/enware2/xthome
/fonts
/app
[Reset to Default]
on the X Server - Font Path configuration
screen.
xlsfonts
fontname
If you ever need to delete font files and font directories, keep in mind the following restrictions:
/opt/hpxt/enware2/xthome
/fonts
/misc
mkfontdir
program to create a new fonts.dir file.
app
directory and delete old.snf
fonts.dir
file for the app
directory by typing:
mkfontdir /opt/hpxt/enware2/xthome/fonts/app
Refer to Solving Font-Related Problems for troubleshooting information.