Asian Application Developer's Guide

Simplified Chinese Font Sets

In the Asian OpenWindows environment, a font set is composed of one Roman font (presenting codeset 0 or ASCII characters in ISO8859 standard) and one Chinese font (presenting codeset 1 characters in GB2312).

The Asian OpenWindows environment provides some default font sets defined in a Chinese font set definition file:

/usr/openwin/lib/locale/zh/OW_FONT_SETS/OpenWindows.fs

The following is part of this file:

! (14 points, proportional)
-sun-song-medium-r-normal--16-140-75-75-p-140-chinese-
0:definition,\
    -b&h-lucida-medium-r-normal-sans-0-0-0-0-p-0-iso8859-1,\
    -sun-song-medium-r-normal--16-140-75-75-c-140-gb2312.1980-0

The following line in the file defines a font set as follows:

"-sun-song-medium-r-normal--16-140-75-75-p-140-Chinese-0"

The following line describes the Roman font:

"-b&h-lucida-medium-r-normal-sans-0-0-0-0-p-0-iso8859-1"

The following line describes the codeset 0 (ASCII) character display, along with the following:

"-sun-song-medium-r-normal--16-140-75-75-c-140-gb2312.1980-0"

Note the following default font sets defined in the Chinese OpenWindows environment:

-sun-song-medium-r-normal--14-120-75-75-c-120-chinese-0
-sun-song-medium-r-normal--16-140-75-75-p-140-chinese-0
-sun-song-medium-r-normal--16-140-75-75-c-140-chinese-0
-sun-song-medium-r-normal--18-160-75-75-c-160-chinese-0
-sun-song-medium-r-normal--22-200-75-75-c-200-chinese-0
-sun-song-medium-r-normal--26-240-75-75-c-240-chinese-0
-sun-song-bold-r-normal--16-140-75-75-p-140-chinese-0
-sun-song-bold-r-normal--16-140-75-75-c-140-chinese-0

The font set name alias definitions are also provided in /usr/openwin/lib/locale/zh/OW_FONT_SETS/OpenWindows.fs.

An alias definition line in the file appears as follows:

song14: alias, -sun-song-medium-r-normal--16-140-75-75-c-140-chinese-0

You can use song14 instead of -sun-song-medium-r-normal--16-140-75-75-c-140-chinese-0 to access the font set.

Font Set 

Aliases 

song12

-sun-song-medium-r-normal--14-120-75-75-c-120-chinese-0

song14

-sun-song-medium-r-normal--16-140-75-75-c-140-chinese-0

song16

-sun-song-medium-r-normal--18-160-75-75-c-160-chinese-0

song20

-sun-song-medium-r-normal--22-200-75-75-c-200-chinese-0

song24

-sun-song-medium-r-normal--26-240-75-75-c-240-chinese-0

songb14

-sun-song-bold-r-normal--16-140-75-75-c-140-chinese-0

songb16

-sun-song-bold-r-normal--18-140-75-75-c-160-chinese-0

For complete definitions of these and other font sets, see the /usr/openwin/lib/locale/zh/OW_FONT_SETS/OpenWindows.fs file and to XView Developer's Notes.