Traditional Chinese Solaris User's Guide

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.

Specifying a Font at the Command Line

You can specify which font a Traditional Chinese OpenWindows application will use on a command line. When the current locale is zh_TW or zh_TW.BIG5, the command uses one of the defined font-set aliases instead (explained in the following section), for example:


system% cmdtool -font fontset_name & 

However, 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

The Traditional Chinese OpenWindows environment provides several font sets that combine two or more fonts so that both English and Chinese characters can be used together in one window. Five of the font sets each comprise one Roman font (ASCII characters) in the ISO8859 standard plus a Chinese font specified in CNS 11643-92. A few examples are:

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

In addition, the Traditional Chinese Solaris operating environment provides TrueType scalable fonts in the following type faces:

These fonts are located in $OPENWINHOME/lib/locale/zh_TW/X11/fonts/TrueType