Simplified Chinese Solaris User's Guide

Customizing Your OpenWindows Workspace

This section describes how to customize your workspace.

Using Fonts

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

Simplified Chinese Font Sets

A Simplified Chinese font set 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 8 provides some default font sets 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 set containing 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 Set

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 set:


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 set. 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.

Specifying a Font on the Command Line

A command line that starts a Simplified Chinese OpenWindows application can specify the application's font. When the current locale is Simplified Chinese, 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

Simplified Chinese Solaris software provides several Song-style font sets that combine two or more fonts so both English and Chinese characters can be used together in one window. Each font set comprises one Roman font (ASCII characters) in the ISO8859 standard plus a bitmap Chinese font specified in GB2312-80. A few examples are:

Each of these font sets is made up of two font files. The $OPENWINHOME/lib/locale/zh/OW_FONT_SETS/OpenWindows.fs file defines the full Simplified Chinese Solaris font set.

Scaling Application Windows and Fonts

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

For example, the following command line starts a Command Tool window that uses 16-point type and is scaled proportionally larger than the default:


system% cmdtool -scale large &