您可以使用繁體中文字型,就像您在 DPS 自動換行定義中使用羅馬字型一樣。下列的範例程式碼建立了上述的顯示:
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 |
您可以告知在 C 程式中的 PSWDisplayText (中文文字) 以指定的中文文字顯示;例如,如下所示:
繁體中文 Solaris 軟體提供 DPS 的 TrueType 支援。