Intermec PX6i Intermec Printer Language (IPL) Developer's Guide (old) - Page 57

Creating User-Defined Fonts for Emulation Mode, Creating User-Defined

Page 57 highlights

Chapter 3 - Working with Fonts and Graphics Example of UDC for Emulation Mode Command Line c P G3;x15;y15; u0,000000010000000; u1,000000101000000; u2,000001000100000; u3,000010000010000; u4,000100000001000; u5,001000000000100; u6,010000000000010; u7,111111111111111; u8,011111110000010; u9,001111110000100; u10,000111110001000; u11,000011110010000; u12,000001110100000; u13,000000111000000; u14,000000010000000; R; Description Places the printer in Emulation mode Places the printer in Program mode Creates UDC and assigns it "font 3." Defines column 0 Defines column 1 Defines column 2 Defines column 3 Defines column 4 Defines column 5 Defines column 6 Defines column 7 Defines column 8 Defines column 9 Defines column 10 Defines column 11 Defines column 12 Defines column 13 Defines column 14 Saves the graphic and places the printer in Print mode Creating User-Defined Fonts for Emulation Mode Creating user-defined font characters for Emulation mode is almost identical to the procedure for creating user-defined characters. You need to define the format for each ASCII character you want to use. For help, see "Creating User-Defined Characters for Emulation Mode" on page 45. Additionally, when you write the command strings that define the ASCII characters for the font, you need to include syntax for these commands: • "Bitmap User-Defined Font, Clear or Define": This command creates a new font and font number. Syntax is Tn, where n is the font number. • "Bitmap Cell Width for Graphic or UDF, Define": This command defines the width for all cells that contain a character from this font. Syntax is xn, where n is the cell width in dots. • "Bitmap Cell Height for Graphic or UDF, Define": This command defines the height for all cells that contain a character from this font. Syntax is yn, where n is the cell height in dots. • "User-Defined Font Character, Create": This command creates the new character. Syntax is tn, where n is the decimal equivalent of the corresponding ASCII character. For help, see the "Full ASCII Table" on page 76. You need to add this syntax for each new character in your user-defined font. Intermec Printer Language (IPL) Developer's Guide 47

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112

Chapter 3 — Working with Fonts and Graphics
Intermec Printer Language (IPL) Developer’s Guide
47
Creating User-Defined Fonts for Emulation Mode
Creating user-defined font characters for Emulation mode is almost identical to the
procedure for creating user-defined characters. You need to define the format for
each ASCII character you want to use. For help, see
“Creating User-Defined
Characters for Emulation Mode” on page 45.
Additionally, when you write the command strings that define the ASCII characters
for the font, you need to include syntax for these commands:
“Bitmap User-Defined Font, Clear or Define”: This command creates a new font
and font number. Syntax is
T
n
, where
n
is the font number.
“Bitmap Cell Width for Graphic or UDF, Define”: This command defines the
width for all cells that contain a character from this font. Syntax is x
n
, where
n
is
the cell width in dots.
“Bitmap Cell Height for Graphic or UDF, Define”: This command defines the
height for all cells that contain a character from this font. Syntax is y
n
, where
n
is
the cell height in dots.
“User-Defined Font Character, Create”: This command creates the new
character. Syntax is t
n
, where
n
is the decimal equivalent of the corresponding
ASCII character. For help, see the
“Full ASCII Table” on page 76.
You need to
add this syntax for each new character in your user-defined font.
Example of UDC for Emulation Mode
Command Line
Description
<STX><ESC>c<ETX>
Places the printer in Emulation mode
<STX><ESC>P<ETX>
Places the printer in Program mode
<STX>G3;x15;y15;<ETX>
Creates UDC and assigns it “font 3.”
<STX>u0,000000010000000;<ETX>
Defines column 0
<STX>u1,000000101000000;<ETX>
Defines column 1
<STX>u2,000001000100000;<ETX>
Defines column 2
<STX>u3,000010000010000;<ETX>
Defines column 3
<STX>u4,000100000001000;<ETX>
Defines column 4
<STX>u5,001000000000100;<ETX>
Defines column 5
<STX>u6,010000000000010;<ETX>
Defines column 6
<STX>u7,111111111111111;<ETX>
Defines column 7
<STX>u8,011111110000010;<ETX>
Defines column 8
<STX>u9,001111110000100;<ETX>
Defines column 9
<STX>u10,000111110001000;<ETX>
Defines column 10
<STX>u11,000011110010000;<ETX>
Defines column 11
<STX>u12,000001110100000;<ETX>
Defines column 12
<STX>u13,000000111000000;<ETX>
Defines column 13
<STX>u14,000000010000000;<ETX>
Defines column 14
<STX>R;<ETX>
Saves the graphic and places the printer
in Print mode