The xetops utility converts Chinese text into a bitmapped graphics printed image. A typical command line for printing a file named filename containing Simplified Chinese characters, with or without ASCII/English characters, would be as follows:
system% pr filename | xetops | lp |
Make filename the name of the file to print. This file may contain ASCII/English characters as well as Chinese. Refer to the xetops(1) man page for more detailed information.
The xetops utility allows you to print Simplified Chinese characters using a PostScript-based printer.
In the zh.GBK locale, the xetops utility allows you to print Simplified Chinese characters using TrueType or Bitmap fonts. For TrueType fonts, you can select four typefaces, including FangSongTi, SongTi, HeiTi, and KaiTi. For usage information on xetops, type
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:
-r: prints the file in landscape mode.
-B: prints the file using bitmap fonts. (The default is TrueType SongTi font.)
-t: use this option to specify up to four typefaces. S indicates SongTi, F indicates FangSongTi, K indicates KaiTi, and H indicates HeiTi.
-s: designates the size of each character. i stands for inches, m stands for millimeters, and c stands for centimeters. (The default is inches.)
-p: specifies the paper size (A3, A4, A5, B5, US Letter, or US Legal)..
-o: specifies the length and width of the paper. i stands for inches, and c stands for centimeters. (The default is the number of the lines.)
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.