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.