Asian Application Developer's Guide

Font Lists

Asian Solaris 2.6 uses font lists to display text. A font defines a set of glyphs that represent the characters in a given character set. A "font set" is a collection of fonts needed to display text for a specific locale or language. A "font list" is a list of fonts, font sets, or a combination of the two. This section describes the Asian Solaris font lists and how to select them when starting an Asian Solaris application. The files in /usr/dt/app-defaults/locale/* define the system default font lists, where locale is ko, ko.UTF-8, zh, zh_TW, or zh_TW.BIG5.

Korean Font Lists

In the Asian Solaris 2.6 environment, a Korean font list is composed of one English font representing codeset 0 (ASCII) characters in KS C 5636 or ISO8859-1, and one Korean font representing codeset 1 characters in KS C 5601-1987-0.

The KS C 5636 and ISO8859-1 character sets are nearly identical. The differences are that KS C 5636 uses only the code values from 0 to 127, and the backslash character (whose ISO8859-1 code value is 92) is replaced by the Korean currency symbol. Asian Solaris 2.6 provides some default font lists defined in the application defaults files in /usr/dt/app-defaults/ko/*. The following is an excerpt from one of the files, Dtwm:

Dtwm*icon*fontList: \ 	    -dt-interface system-medium-r-normal-s*ksc*:
This portion of the file refers to a font list that contains two fonts previously mentioned that are included in the ko locale:
English font, for codeset 0 (ASCII) character font display: 
-dt-interface system-medium-r-normal-s sans-14-120-75-75-p-60-ksc5636-0
Korean font, for codeset 1 (KS C 5601-1987-0) character font display: 
-dt-interface system-medium-r-normal-s sans-14-120-75-75-p-120-ksc5601.1987-0
Note that these fonts are defined in the file /usr/openwin/lib/locale/ko/X11/fonts/75dpi/fonts.alias.

Starting Applications with a Specific Korean Font List

When you start an Asian Solaris tool at the command line, you can also specify its fonts. Below is an example of a command line argument used to start a new Korean Solaris terminal with a specified font list:


system% dtterm  -fn "-dt-interface system-medium-r-normal-s 
sans-14-120-75-75-p-60-ksc5636-0;\ 	-dt-interface 
system-medium-r-normal-s sans-14-120-75-75-p-120-ksc5601.1987-0:"
Note the two delimiters used in the font list. The ";" delimiter is used to separate the font names except for the last font name, which ends with the ":" delimiter. (In the example above, ";" follows the English font name, and the ":" delimiter follows the Korean font name.) Since there are spaces in the long font names, the font list is enclosed in quotation marks.

Korean UTF-8 Font Lists

In the Asian Solaris 2.6 environment, a Korean UTF-8 font list is composed of one English font representing codeset 0 (ASCII) characters in KS C 5636 or ISO8859-1, and one Korean Johap font representing codeset 1 characters in KS C 5601-1992-3. Asian Solaris 2.6 provides some default font lists defined in the application defaults files in /usr/dt/app-defaults/ko.UTF-8/*. The following is an excerpt from one of the files, Dtwm:

Dtwm*icon*fontList: \ 	-dt-interface system-medium-r-normal-s*ksc*:
This portion of the file refers to a font list that contains two fonts previously mentioned that are included in the ko locale:
English font, for codeset 0 (ASCII) character font display: 
-dt-interface system-medium-r-normal-s sans-14-120-75-75-p-60-ksc5636-0 
Korean Johap font, for codeset 1 (KS C 5601-1992-3) character font display:
-dt-interface system-medium-r-normal-s sans-14-120-75-75-p-120-ksc5601.1992-3
Note that these fonts are defined in the file /usr/openwin/lib/locale/ko.UTF-8/X11/fonts/75dpi/fonts.alias

Starting Applications with a Specific Korean UTF-8 Font List

When you start an Asian Solaris tool at the command line, you can also specify its fonts. Below is an example of a command line argument used to start a new Korean Solaris terminal with a specified font list in the Korean UTF-8 locale environment:


system% dtterm  -fn "-dt-interface system-medium-r-normal-s 
sans-14-120-75-75-p-60-ksc5636-0;\ 	-dt-interface 
system-medium-r-normal-s sans-14-120-75-75-p-120-ksc5601.1992-3:"
Note the two delimiters used in the font list. The ";" delimiter is used to separate the font names except for the last font name, which ends with the ":" delimiter. (In the example above, ";" follows the English font name, and the ":" delimiter follows the Korean UTF-8 font name.) Since there are spaces in the long font names, the font list is enclosed in quotation marks.

Simplified Chinese Font Lists

In the Asian Solaris 2.6 environment, a Simplified Chinese font list is composed of one English font representing codeset 0 (ASCII) characters in gb1988.1989-0 or ISO8859-1, and one Simplified Chinese font representing gb2312.1980-0 characters.

Simplified Chinese Solaris 2.6 provides some default font lists defined in application defaults files in /usr/dt/app-defaults/zh/*. The following is an excerpt from one of the files, Dtwm:

Dtwm*icon*fontList: \ 	-dt-interface system-medium-r-normal-s*-*-*-*-*-*-*-*-*:

This portion of the file refers to a font list that contains two fonts previously mentioned that are included in the zh locale.

"-dt-interface system-medium-r-normal-s serif-14-120-75-75-p-60
-gb1988.1989-0""-dt-interface system-medium-r-normal-s serif-14-120-75-75-p-120
-gb2312.1980-0"

The first is an English font for codeset 0 (ASCII) character font display. The second is a Simplified Chinese font for codeset 1 (GB2312.1980) character font display.

Note that these fonts are defined in the file /usr/openwin/lib/locale/zh/X11/fonts/75dpi/fonts.alias.

Starting Applications with a Specific Simplified Chinese Font List

When you start an Asian Solaris tool at the command line, you can also specify its fonts. Below is an example of a command line argument used to start a Simplified Chinese Windows terminal with a specified font list:


system% dtterm -fn "-dt-interface system-medium-r-normal-s \  	
serif-14-120-75-75-p-60-gb1988.1989-0; \  	
-dt-interface system-medium-r-normal-s \  	
serif-14-120-75-75-p-120-gb2312.1980-0:"
Note the two delimiters used in the font list. The ";" delimiter is used to separate the font names except for the last font name, which ends with the ":" delimiter. (In the example above, ";" follows the English font name, and the ":" delimiter follows the Simplified Chinese font name.) Since there are spaces in the long font names, the font list is enclosed in quotation marks.

Traditional Chinese (zh_TW) Font Lists

In the Asian Solaris 2.6 environment, a Traditional Chinese (zh_TW) font list is composed of one English font, representing ASCII characters in CNS11643-0 or ISO8859-1, and a number of Traditional Chinese fonts representing characters such as CNS11643-1, CNS1643-1, CNS11643-2, and CNS11643-3.

Traditional Chinese Solaris provides some default font lists defined in application defaults files in /usr/dt/app-defaults/zh_TW/*. The following is an excerpt from one of these files, Dtwm:

Dtwm*icon*fontList: \ 	-dt-interface system-medium-r-normal-s*-*-*-*-*-*-*-*-*:
This portion of the file refers to a font list that contains the following fonts, which are defined in /usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/fonts.alias:
"-dt-interface system-medium-r-normal-s serif-16-140-75-75-p-70-cns11643-0"
"-dt-interface system-medium-r-normal-s serif-16-140-75-75-p-140-cns11643-1" 	
"-dt-interface system-medium-r-normal-s serif-16-140-75-75-p-140-cns11643-2" 	
"-dt-interface system-medium-r-normal-s serif-16-140-75-75-p-140-cns11643-3"
The first is the English font for codeset 0 (ASCII) character font display. The rest are Traditional Chinese fonts for codeset 1 (CNS11643) plane 1 character font display, and codeset 2 (CNS11643) plane 2 and plane 3 character font display.

Starting Applications with a Specific Traditional Chinese Font List

When you start an Asian Solaris tool at the command line, you can also specify its fonts. Below is an example of a command line argument used to start a new Traditional Chinese Windows terminal with a specified font list:


system% dtterm -fn  "-dt-interface system-medium-r-normal-s \  	
serif-16-140-75-75-p-70-cns11643-0; \  	-dt-interface 
system-medium-r-normal-s \  	serif-16-140-75-75-p-140-cns11643-1:"
Note the two delimiters used in the font list. The ";" delimiter is used to separate the font names except for the last font name, which ends with the ":" delimiter. (In the example above, ";" follows the English font name, and the ":" delimiter follows the Traditional Chinese font name.) Since there are spaces in the long font names, the font list is enclosed in quotation marks.

Traditional Chinese (zh_TW.BIG5) Font Lists

In the Asian Solaris 2.6 environment, a Traditional Chinese zh_TW.BIG5 font list is composed of one English font, representing ASCII characters, and one Traditional Chinese font representing Chinese characters in Big 5.

Traditional Chinese Solaris provides some default font lists defined in an application defaults file in /usr/dt/app-defaults/zh_TW.BIG5/*. Below is a part of one of the files, Dtwm:

Dtwm*icon*fontList: \ 	-dt-interface system-medium-r-normal-s*-*-*-*-*-*-*-*-*
This font list contains the following fonts, defined in /usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/75dpi/fonts.alias:
"-dt-interface system-medium-r-normal-s serif-16-140-75-75-p-70-big5-0" 	
"-dt-interface system-medium-r-normal-s serif-16-140-75-75-p-140-big5-1"
The first is an English font for ASCII character font display. The second is a Traditional Chinese Big 5 font.

Starting Applications with a Specific Traditional Chinese Font List

When you start an Asian Solaris tool at the command line, you can also specify its fonts. The following is an example of using a command line argument to start a new Traditional Chinese Windows terminal with a specified font list.


system% dtterm -fn "-dt-interface system-medium-r-normal-s \  	
serif-16-140-75-75-p-70-big5-0; \  	
-dt-interface system-medium-r-normal-s \  	
serif-16-140-75-75-p-140-big5-1:"
Note the two delimiters used in the font list. The ";" delimiter is used to separate the font names except for the last font name, which ends with the ":" delimiter. (In the example above, ";" follows the English font name, and the ":" delimiter follows the Traditional Chinese font name.) Since there are spaces in the long font names, the font list is enclosed in quotation marks.