简体中文 Solaris 用户指南

使用 xetops 实用程序打印

xetops 实用程序把中文文本转换为位图图形打印图像。下面是一个典型的命令行指令可打印出一个含有中文字符、可含也可不含 ASCII 英语字符的名为 filename 的文件:


system%  pr filename | xetops | lp

filename 作为要打印的文件名称。这个文件可以含有 ASCII 英语字符和中文字符。有关的详细信息,请参见 xetops (1) 的手册页。

xetops 实用程序容许您使用基于 PostScript 的打印机打印简体中文字体。

zh.GBK 语言环境,xetops 实用程序容许您使用 TrueType 或位图字体打印简体中文字符。对于 TrueType 字体,您可选择四种铅印字体,包括仿宋体、宋体、黑体和楷体。要知道如何调用 xetops 实用程序,可键入


system%  xetops -h

下列指令格式信息出现:


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]

xetops 实用程序的选项如下:

在这里给出一些使用 pr 命令和 xetops 实用程序的实例。以下指令:


system% pr filename | xetops | lp

将使用宋体 TrueType 字体打印出文件。打印出的字符的尺寸是 4mm。

以下指令:


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

将使用楷体 TrueType 字体打印出文件。打印出的字符的尺寸是 8mm。

以下指令:


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

将使用黑体 TrueType 字体打印出文件。打印出的字符的尺寸是 1.2 英寸。

以下指令:


system% xetops -B filename | lp

将使用位图字体打印出文件。