HP-UX Java - Fonts and the Java Runtime Environment

Japanese: PHSS_26972 (for 11.0) or PHSS_26971 (for 11i)
Korean: PHSS_26974 (for 11.0) or PHSS_26973 (for 11i)
Simple-Chinese: PHSS_26976 (for 11.0) or PHSS_24975 (for 11i)
Traditional Chinese: PHSS_24937 (for 11.0) or PHSS_26977 (for 11i)
Common: PHSS_25091 (for 11.0) or PHSS_25092 (for 11i)
2. Make sure you have installed HP's SDK version 1.3.1.02 or later, which supports
Asian TrueType fonts, including new versions of the font.properties files.
SDK 1.3.1.06 is recommended.
3. When your Java™ application runs under an Asian locale, Java™ fonts are defined
using the following fonts.properties files shipped in $JAVA_HOME/jre/
lib.
The hp.fontpath property (SDK 1.3x, 1.4x only)
When a font is installed to a location outside of JAVA_HOME, Java™ finds the font
using the Java™ Fontpath. Java™ reads fonts.dir.jre (or fonts.dir) found along
Java™ Fontpath to register scalable fonts.
Java™ Fontpath may be defined using the hp.fontpath property in your
locale-sensitive font.properties file. The Java™ Fontpath is formed by combining
the value of hp.fontpath with $JAVA_HOME/jre/lib/fonts. The default value
of hp.fontpath is:
/usr/lib/X11/fonts/ms.st/typefaces:
/usr/lib/X11/fonts/type1.st/typefaces:
/usr/lib/X11/fonts/ttf.st/typefaces
Java™ Fontpath is NOT used to find bitmap fonts. Instead, bitmap fonts on HP-UX
are found using the font path of the X Server (the X Fontpath).
Java™ heavyweight text components use fonts specified in the bottom section of the
font.properties file.
Bitmap vs. Scalable fonts (all SDK versions)
Bitmap fonts are stored as such, but scalable fonts are stored as a description of the
outline of the font. Scalable fonts are scaled by the X Server to any point size. TrueType
is one format of a scalable font. (Type1 and F3 are two others.)
You can use the xlsfonts utility to test which X11 fonts are available on your machine.
The following is an example Font ID (xlfd) for 16- and 48-point sizes of the bitmap
font batang:
-hp-batang-medium-r-normal--16-160-75-75-c-160-ksc5601.1987-1
-hp-batang-medium-r-normal--48-160-75-75-c-160-ksc5601.1987-1
Scalable fonts can be recognized by the 0 values for the size fields in the xlfd, as in
this xlfd for hybatang:
-hy-hybatang-medium-r-normal--0-0-0-0-m-0-ksc5601.1987-1
The hp.fontpath property (SDK 1.3x, 1.4x only) 5