简体中文 Solaris 用户指南

使用 xetopsxutops 公用程序

xetopsxutops 公用程序的作用是生成可作为可打印图像的位映射图形。 简体中文 Solaris 软件包含 xetopsxutops 公用程序,因此任何系统都可以在 PostScript 打印机上打印简体中文文本。 未来可能不再支持 EUC 语言环境中的 xetops 公用程序和 UTF—8 语言环境中的 xutops 公用程序。

xetops 打印一个名为 filename 、包含简体中文字的文件的典型命令行如下所示:


system% pr filename | xetops | lp 

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 工具的选项如下:

下面是 prxetops 的一些示例。 以下命令:


system% pr filename | xetops | lp

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

以下命令:


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

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

以下命令:


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

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

以下命令:


system% xetops -B filename | lp

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

xutops 的语法与此类似:


system% pr filename | xutops | lp 

filename 作为要打印的文件的名称。该文件既可以包含 ASCII/英文字符,也可以包含简体中文。