Asian Application Developer's Guide

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.