The Traditional Chinese Solaris operating environment provides the Chinese PostScript fonts listed in Table 6-3.
Table 6-3 Traditional Chinese Solaris Operating Environment PostScript Fonts|
Font Name |
Description |
|---|---|
|
Kai-Medium |
Alias of Kai-Medium-EUC-H. |
|
Kai-Medium-EUC-H |
Kai-Medium font, EUC encoding, horizontal display; can be used like a Roman font. |
|
Kai-Medium-EUC-V |
Kai-Medium font, EUC encoding, vertical display; can be used like a Roman font. |
|
Kai-Medium-H |
Kai-Medium font, horizontal display, to composite with a Roman font. |
|
Kai-Medium-V |
Kai-Medium font, vertical display, to composite with a Roman font. |
|
Ming-Light |
Alias of Ming-Light-EUC-H. |
|
Ming-Light-EUC-H |
Ming-Light font, EUC encoding, horizontal display; can be used like a Roman font. |
|
Ming-Light-EUC-V |
Ming-Light font, EUC encoding, vertical display; can be used like a Roman font. |
|
Ming-Light-H |
Ming-Light font, horizontal display, to composite with a Roman font. |
|
Ming-Light-V |
Ming-Light font, vertical display, to composite with a Roman font. |
Of the fonts in this table, you can use the following just as you use Roman fonts:
Kai-Medium
Kai-Medium-EUC-H
Kai-Medium-EUC-V
Ming-Light
Ming-Light-EUC-H
Ming-Light-EUC-V
Figure 6-5 shows the use of Kai-Medium and Ming-Light.

You can create composite fonts using one Roman font and one of the following Traditional Chinese fonts:
Ming-Light-H
Ming-Light-V
Kai-Medium-H
Kai-Medium-V
For example, the following PostScript code defines a sample composite font, Times-Italic+Kai-Medium, which uses Times-Italic for ASCII characters and Song-Medium horizontal font for Traditional Chinese characters:
/Times-Italic+Kai-Medium
13 dict begin
/FontName 1 index def
/FMapType 4 def
/Encoding [ 0 1 ] def
/WMode 0 def
/FontType 0 def
/FontMatrix [1.0 0.0 0.0 1.0 0.0 0.0] def
/FDepVector [
/Times-Italic findfont
/Kai-Medium-H findfont
] def
currentdict
end
definefont pop
You can use Traditional Chinese fonts just as you use Roman fonts in DPS wrap definitions. The following sample code creates the display in Figure 6-6:
defineps PSWDisplayText(char *text)
/pointSize 50 def
/Helvetica pointSize selectfont
(Hello World) stringwidth pop 2 div neg 0 moveto
(Hello World) show
/cpSize 40 def
/Kai-Medium cpSize selectfont
(text) stringwidth pop 2 div neg pointSize neg moveto
(text) show
endps
You can call PSWDisplayText(Chinese text) in a C program to display the designated Chinese text; for example, as shown in Figure 6-6.

Simplified Chinese Solaris software provides TrueType support in DPS.