Asian Application Developer's Guide

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.