
80 | Chapter 4: Programming Commands | Revision D 12/09 |
A word (2 bytes) is used to identify the attribute mapping, with “m” bits 0 – 6 identifying which original attributes should be mapped:
Original attribute mapped table
m bit on | attribute mapped |
0Bold
1Italic
2Reverse
3Underline
4Double high
5Double wide
6Compressed print
The following “s” bits and “m” bit 7 set the attributes that substitute for the mapped set:
Attributes substituted table
m bit on | attributes substituted |
7 | Bold substituted |
s bit on | attributes substituted |
0Italic
1Reverse
2Underline
3Double high
4Double wide
5Compressed print
6Alternate color
7Color reverse
This command configures into EEPROM (permanent configuration switch setting) one or two combinations of character attribute mappings, including substitute attribute settings for color effects. The attributes of the character code are used to form the desired pixel character when the code is placed into the raster print buffer. An “m” bit value set to on in the “original attribute mapped table” above will have its attributes set to the corresponding bit value of “s” in the “attributes substituted table”. If m = 0 then no substitution takes place.
The command is available only in A760 native mode. Once attributes have been defined and enabled they can be used in any emulation mode. A760 native mode must be used to turn the feature off.
The operational theory of this command is that if (input character attributes) AND (original) = (original); then (output character attributes) = ([original] XOR [input character attributes]) OR (substituted). The input character’s original attributes are mapped to the substituted attributes, but any attributes not specified for mapping are unchanged.
In the tables you will see that there are 7 input attributes and 9 outputs. It is expected that the alternate color attribute will be used most. For example, when the alternate color attribute is combined with the reverse substitution attribute, the result is white characters on a color background. The color reverse attribute without alternate color will print black text on a color background.
Any mappings utilizing compressed and/or
When both attribute mappings are set, processing is perform in order sequence. When two text attribute substitutions contain conflicting dependent remappings, the result is undefined.