Developer's Toolkit Release Notes for HP-UX 11i

Chapter 1 11
Announcements
Product
cases. In addition, X11R5 and Motif 1.2 provide alternate, standard
mechanisms for rendering internationalized text data. The associated
font mechanism won’t be supported on future releases of X11R5 and not
at all in X11R6.
Applications directly calling the X library to render international text
should replace their calculation of font metrics and their calls to XDraw*,
XLoadFont(), and XLoadQueryFont() with the following:
XCreateFontSet()
XExtentsOfFontSet()
XmbDrawString(), XwcDrawString()
XmbDrawImageString(), XwcDrawImageString()
XmbDrawText(), XwcDrawText()
XmbTextEscapement(), XwcTextEscapement()
XmbTextExtents(), XwcTextExtents()
XmbTextPerCharExtents(),XwcTextPerCharExtents()
Applications and users that set Motif fontList resources to obtain
internationalized text data should modify those font resources to specify
font sets. As of Motif 1.2, a fontList resource can contain any
combination of font structs and font sets. A font set is specified in a
fontList resource by adding a ":" to the end of the fontList entry. For a
font set, a fontList entry can be one or more ";" separated base names. A
base name is either a font name (such as jpn.8x18) or an X Logical Font
Description (XLFD). A typical fontList setting for Japanese might be:
app_name*Text.fontList: *-mincho-*-18-*:
The ":" character at the end of the fontList resource specification is
mandatory to use font set technology.
For Motif to use font sets correctly in an application, either setlocale()
or XtSetLanguageProc() must be called prior to initializing the toolkit.