Korean Solaris User's Guide

Customizing Your OpenWindows Workspace

Using Fonts

The localized language functions of Korean Solaris applications use font sets, or groips of fonts including both ASCII character fonts and non-ASCII Korean character fonts. These combinations of fonts are required for Korean display. They can be used, as font names are, in customizing your workspace as described in Solaris User's Guide.

Korean (ko) Font Lists

A Korean (ko) font list is composed of one English font representing ASCII characters in KS C 5636 or ISO8859-1, and one Korean font represeting characters in KS C 5601-1987-0.

The KS C 5636 and ISO8859-1 character sets are nearly identical. The diferences 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.

Korean Solaris 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, which are defined in /usr/openwin/lib/locale/ko/X11/fonts/75dpi/fonts.alias.

Korean (ko.UTF-8) Font Lists

A Korean (ko.UTF-8) font list is composed of one English font representing ASCII characters in KS C 5636 or ISO8859-1, and one Korean Johap font represeting codeset 1characters in KS C 5601-1992-3.

Korean Solaris 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, which are defined in /usr/openwin/lib/locale/ko.UTF-8/X11/fonts/75dpi/fonts.alias.

Starting Applications With a Specific Korean (ko or ko.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 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 Korean font name.) Since there are spaces in long font names, the font list is enclosed in quotation marks.

Specifying Font on Command Lines

A command line that starts a Korean OpenWindows application can specify the application's font. When the current locale is Korean, the command uses one of the defined font-set aliases instead (explained in the following section), for example:


system% cmdtool -font fontset_name &

But when the current locale is C the command uses a font name and cannot use a font-set alias. The following shows a command using the long name of an ASCII character font:


system% cmdtool \
    -font -misc-fixed-medium-r-normal--9-80-100-100-c-60-iso8859-1 &

Font Set Names

Korean Solaris software provides several font sets that combine two or more fonts so both English and Korean characters can be used together in one window. Some font sets comprise an English font plus a Korean font, both specified in KS C 5601. For easy use several of these font sets have simple names as follows:

Scaling Applications Windows and Fonts

The $OPENWINHOME/lib/locale/ko/OW_FONT_SETS/OpenWindows.fs file also sets the following font size definitions for use in command lines: