HP PCL/PJL reference - PCL 5 Comparison Guide
2-42 Printer-Specific Differences ENWW
• Substitute String Character List (array of UI)—the characters
which make up the substitute string. Each character is
represented as a UI value. If the font is a bound font, then the
values are accessed by their character codes values; if the font
is unbound, then the Unicode index numbers (see
Appendix D) are used.
The Typeface String Segment will be invalid if the Data Segment Size
declared in the Data Segment Size field is larger or smaller than
required for substitute string length, or if the Data Segment Size is an
odd number of bytes. If the segment is invalid, the font download will
be ignored.
Typeface String Segments can be downloaded with any Font
Format 15 or Font Format 16 font, regardless of font type.
The following tables are examples of Typeface String Segments for
two downloaded fonts. The first is for MS Mincho, and has the
embedded font name flag set to true. The second is for MS Gothic,
and has the embedded font name flag set to false.
MS Mincho
Byte 15 (MSB) 8 7 (LSB) 0 Byte
0 TF (21574) 1
2
4
Data Segment Size
(10) *
3
5
6 Embedded Font
Name Flag = 1
Substitute String
Length = 4
7
8
10
12
14
Substitute String Character List =
0x826c (Note: these are full-width
0x8272 Shift-JIS character codes
0x96be for “MS” and Kanji “Mincho”)
0x92a9
9
11
13
15