User manual
APOS KANJI User Manual Page 32 / 45
Ref : 3103039-FDE Issue A
4.1.34. AX &
(Description) Define proportional characters
(Format) <1Fh> <26h> <s> <n> <m> [<a> <p1> <p2> ... <ps x a>] (m-n+1)
(Comments) This command works as the ESC & command but allows the definition of
characters smaller than the selected font so that a proportional font may be
defined.
Each character is defined as an array of dots (bits) which is s-bytes high by a-
bytes wide. The array contains bytes which represent the character ‘scanned’
from top to bottom and then from left to right. The first byte of the array (byte
p1) represents the top-left corner of the character with the most-significant bit
(MSB) at the top and the least-significant bit (LSB) seven dots below it.
Where any bit of the array contains a 1, a dot will be printed, where it contains
a 0, no dot will be printed. Thus s x a bytes are sent to define each character.
The newly-defined characters will overwrite the existing Ascii characters
between characters 32 and 126 starting from character number n to character
number m. Therefore, the character array must be sent (m-n+1) times. If
only 1 character is being sent, m should be set to the same value as n. The
new definitions will be retained unless over-written by a new definition, until a
reset command is sent (ESC @) or until a bit image is defined (command GS
∗).
1 <= s <=3 (ie. characters are 8, 16 or 24 bits high)
32 <= n <= m <= 126
0 <= a <= 16
The values <p1> to <ps x a> are all single-byte numbers
(Cross reference) –
4.1.35. ESC %
(Description) Enable / disable user-defined character set
(Format) <1Bh> <25h> <n>
(Comments) If n is odd, the user defined set is selected.
If n is even, the user defined set is cancelled (the internal set is used).
Default value is n = 0.
The user defined character set and a downloaded bit image can not be
defined at the same time.
(Cross reference) ESC & (define character set)