HP-UX Java - Fonts and the Java Runtime Environment
The JAVA_FONTS environment variable (SDK 1.3x, 1.4x only)
When the JAVA_FONTS environment variable is set, Java™ Fontpath is completely
overridden. JAVA_FONTS is to be used for testing only. If JAVA_FONTS is not set,
hp.fontpath (from font.properties) is used to construct Java™ Fontpath, as
defined in this document.
How the X Font Server affects font display (all JDK versions)
The X Font Server (xfs) daemon affects what scalable TrueType fonts are available
on your machine. (The xlsfonts utility lists both locally installed bitmap fonts and
scalable fonts available via xfs.)
Java™ applications typically need xfs for good rendering using TrueType fonts.
Controlling the X Font Server (all JDK versions)
xfs is configured by default using /etc/X11/fs/config. Keep in mind that some
HP-UX patches that install scalable fonts (for example, PHSS_25091 and PHSS_25092)
may edit the xfs config file. This file includes a path used by xfs to find its fonts.
If you set RUN_X_FONT_SERVER in /etc/rc.config.d/xfs, xfs is started upon
reboot and xfs is added to the font path. Alternatively you can use these two
commands:
/usr/bin/X11/xfs -config /etc/X11/fs/config -port 7000 -daemon
xset +fp tcp/localhost:7000
Additionally, some HP previous SDK versions including 1.2.2.11 and 1.3.0.x, will start
the font server when you execute a GUI application on a local display. See the section
"Starting the X Font Server" section in the release notes for those versions at: HP-UX
Java™ Information Library.
6