Simplified Chinese Solaris User's Guide

Using xetops and xutops Utilities

The xetops and xutops utilities produce bitmapped graphics as printed images. Simplified Chinese Solaris software includes the xetops and xutops utilities so any system can print Simplified Chinese text on a PostScript printer. The xetops utility in EUC locale and xutops Utility in UTF--8 locale may no longer be supported in the future.

A typical command line for printing a file named filename containing Simplified Chinese characters with xetops, would be as follows:


system% pr filename | xetops | lp 

system%  xetops -h

The following syntax information is returned:


xetops  [-r] [-B|[-T [-t S|F|K|H] [-s [i]|m|c]
					  	  [-p A3|A4|A5|B5|USLtr|USLgl]
						  [-o length=i|c| [,width=i|c]]
                 [filename]

The options for xetops are as following:

Here are some examples of pr and xetops. The following command:


system% pr filename | xetops | lp

will print the file using the SongTi TrueType font. The printed characters will be 4mm in size.

The following command:


system% pr filename | xetops -t K -s 8m | lp

will print the file using the KaiTi TrueType font. The printed characters will be 8mm in size.

The following command:


system% xetops -t H -s 1.2 filename | lp

will print the file using the HeiTi TrueType font. The printed characters will be 1.2 inches in size.

The following command:


system% xetops -B filename | lp

will print the file using a bitmap font.

The syntax for xutops is similar:


system% pr filename | xutops | lp 

Make filename the name of the file to print. This file can contain ASCII/English characters as well as Simplified Chinese.