Using customized characters – Brother HL-2170W User Manual
Page 311
CHAPTER 6 EPSON - 23
6.6.
Using customized characters
Define characters
Esc&NULn
1
n
2
(n
3
(27)(38)(00)n1n2(n3....)
<1Bh><26h><00h>n1n2(n3...)
This command enables you to define and download characters for printing.
Monospaced characters are designed on a grid eleven dots wide by nine dots high. Characters either occupy
the top 8 rows of the grid (ascending characters) or rows 2 to 9 of the grid (descending characters).
1
2
3
4
5
6
7
8
9
10
11
12
Blank columns
Character width
Rows 1 - 8
Replication area
Rows 2 - 9
Proportionally spaced characters are subject to the same height constraints (that is, eight dots high and either
ascending or descending). The width of proportionally spaced characters is specified by the value in n3.
n
1
is the character code of the first character in the sequence to be defined.
n
2
is the character code of the last character in the sequence to be defined.
It is assumed that you are defining a sequence of characters whose code numbers increment by one for each
character as default. If this is not the case, you must split the characters you are defining into sets of
characters with contiguous code numbers and use a separate command for each set.
Each character is defined as a series of bytes - each byte defining a column of dots. The columns are read
from left to right in the order in which they occur in the definition. The most significant bit of each byte
represents the top dot of the column, and the least significant bit represents the bottom dot. Simply set a bit
to 1 to print a dot in that position on the grid, or to 0 to print white space.
The MSB (bit 8) of n
3
specifies whether the defined character is an ascender or a descender. Set bit 8 to 0
when defining an ascender, and to 1 for a descender. Ascending characters occupy the top 8 rows of the grid
while descending characters occupy rows 2 to 9 of the grid.
Bits 5 to 7 of n
3
specify the number of columns left blank to the left of the defined character in proportional
spacing mode. The number of columns to skip is the number held in bits 5 to 7 minus 1. Up to six columns
can be skipped. Hence, if you set this number to 4 it is equivalent to setting the first three character
definition data bytes to 0.
Bits 1 to 4 of n
3
specify the width in columns of the defined character in proportional spacing mode. The
width in columns is the number held in bits 1 to 4. Characters can be up to fifteen columns wide, including
skipped blank columns.
Downloaded characters are selected using the Esc % 1 NUL command and then printed by sending the
appropriate character codes.
Select standard / downloaded characters
Esc%nNUL (27)(37)n(00)
<1Bh><25h>n<00h>
Once you have defined and downloaded one or more customized characters using the Esc & command, you
can choose between the normal characters contained in the printer ROM and the characters you have
downloaded.
Set n to 0 to select the printer standard characters. In this mode you cannot print any of your own defined
characters.
Set n to 1 to select your own downloaded characters for printing. Now you can print using your user-defined
characters but you cannot print any of the printer standard characters unless you have previously downloaded
them to RAM as well, using the Esc : Copy ROM to RAM command.
LPRINT CHR$(27); CHR$(37); CHR$(1); CHR$(0); 'Select downloaded
characters
- HL-1670N HL-6050D HL 5250DN HL-5070N HL-2460 HL-6050DN HL-2150N HL 2700CN HL-2130 HL-S7000DN HL-3040CN HL 1650 HL-6050 HL-5240 HL-5240L HL-1470N HL 3070CW HL 5170DN HL-3450CN HL-3140CW HL 5470DW HL-5140 HL-5440D HL-7050 HL-2240 HL-5040 HL-4070CDW HL-1870N HL-1110 HL-1850 HL 4150CDN HL-8050N HL 5450DN HL 5370DW HL-5050 HL-2140 HL 1270N HL-2600CN HL-6180DW HL-5350DN HL-4050CDN HL-2070N HL-3260N HL-5150D HL-5280DW HL-3170CDW HL-4570CDW HL-3150CDW HL 4040CN HL-4140CN HL 2240D HL 2270DW HL-1250 HL-7050N HL 5340D HL-2250DN HL-1450 HL-L9200CDWT HL-1112 HL-5270DN HL-5450DNT HL-L8250CDN HL 4570CDWT HL-5380DN HL-6180DWT HL-L8350CDW HL-4040CDN HL-L8350CDWT HL-2230 HL-5470DWT HL 2220 HL-1110E HL-1112E