Solaris Internationalization Guide For Developers

Programming Environment

Appropriately, internationalized applications should automatically enable the en_US.UTF-8 locale, but proper FontSet/XmFontList definitions in the application's resource file are required.

For information on internationalized applications, see Creating Worldwide Software: Solaris International Developer's Guide, 2nd edition.

Font Set Used with X Applications

The en_US.UTF-8 locale in the Solaris 7 environment supports fonts for the following character sets.

Because the Solaris 7 environment supports the CDE desktop environment, each character set has a guaranteed sets of fonts.

The following is a list of the Latin-1 fonts that are supported in the Solaris 7 product.

For information on CDE common font aliases, including -dt-interface user-* and -dt-application-* aliases, see Common Desktop Environment: Internationalization Programmer's Guide.

In the en_US.UTF-8 locale, utf is also supported as a common font alias. A font set for an application should have a collection of fonts that contains each of the character sets, as in the following example.


fs = XCreateFontSet(display,
	"-dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-iso8859-1,
	 -dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-iso8859-2,
	 -dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-iso8859-5,
	 -dt-interface system-medium-r-normal-s*-utf*-*-*-*-*-*-*-iso8859-6,
 -dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-iso8859-7,
	 -dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-iso8859-8,
 -dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-iso8859-9",
	 -dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-iso8859-15",
 -dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-big5-1",
 -dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-gb2312.1980-0",
 -dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-jisx0201.1976-0",
 -dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-jisx0208.1983-0",
 -dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-kcs5601.1992-3",
 -dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-tis620.2533-0",
    &missing_ptr, &missing_count, &def_string);

XmFontList Definition as CDE/Motif Applications

As with FontSet definition, the XmFontList resource definition of an application should also include each font of the character sets that the locale supports.


Example 4-1 XmNFontList definition for the en_US.UTF-8 locale


*fontList:\
-dt-interface system-medium-r-normal-s*-*-*-*-*-*-*-*-iso8859-1;\
-dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-iso8859-2;\
-dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-iso8859-4;\
-dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-iso8859-5;\
-dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-iso8859-7;\ 
-dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-iso8859-8;\
-dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-iso8859-9;\
-dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-iso8859-15;\
-dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-big5-1;\
-dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-gb2312.1980-0;\
-dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-jisx0201.1976-0;\
-dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-jisx0208.1983-0;\
-dt-interface system-medium-r-normal-s*utf-*-*-*-*-*-*-*-tis620.2533-0: 

For more details on the XmFontList and the XmNFontList, refer to the XmFontList(3X) man page, OSF/Motif Programmer's Guide and the resource section of each Motif widget in the OSF/Motif Programmer's Reference Manual.