繁體中文Solaris使用者指南

繁體中文字形在DPS程式寫作中的使用方法

您可以像在DPS折返定義中使用Roman字形那樣使用繁體中文字形。下列範例代碼會建立上面的顯示畫面:


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(中文文字)顯示指定的中文文字,如以下這段中文:

Graphic

繁體中文Solaris軟體會以DPS支援TrueType。