如何找到用于 PCL5 文件生成的 TrueType 字体的字样?

How to find the typeface of a TrueType font for PCL5 file generation?

我正在尝试将 Truetype 字体 Treubuchet MS 嵌入到 PCL5 生成程序中。 但是我偶然发现了一个问题。要嵌入并使用字体,我应该知道它的字体,然后选择它用于*。pcl 文件。但是我找不到描述字体及其字体(数字)的参考。

更准确地说,我使用以下顺序选择 Treubuchet MS regular:

esc(s0S esc(s0B esc(s25513T esc(6982X

说明: 不是斜体,不是粗体,字体的字体,要加载到打印机的字体的 id。 但是我当前选择的字体 (25513) 是错误的,字体没有发送和加载到打印机(文件中添加了软字体)。

你能帮我解决这个问题吗?

据我所知,您需要的字体 ID 是您创建和下载软字体时提供的。

请注意,在 PCL 5 参考的第 189 页(第 11-5 节软字体创建,以防您使用不同版本的规范)它说:

Use the Font ID command to designate a unique ID number prior to the download of a font header. If an existing font is already associated with this ID, the existing font is deleted upon the download of the font header.

字体 ID 命令可以在我的规范副本的第 156 页找到:

The Font ID command is used to specify an ID number for use in subsequent font management commands. The ID number of a font can be used to select the font for printing (refer to “Font Selection by ID” in Chapter 8). E C *c#D # = ID number Default = 0 Range = 0 - 32767 The font ID number is used during subsequent soft font downloads, selections or deletions. The factory default font ID is 0 (if no Font ID command is sent, an ID of 0 is assigned).

所以在下载软字体之前,您应该指定字体的字体ID,例如:

esc*c1D

然后下载字体。当你想使用你下载的字体时,你 select 它与:

esc(1X

虽然仍然不是 PostScript 问题:-)