21
6.3
Fonts
3.1
Upload a
Font File
Dec
Hex
ASCII
254 36
FE 24
■
$
ID Size Data
ID Size Data
ID Size Data
Upload a font to a graphic display. To create a font see the Font File Creation section, for upload protocol see the
File Upload Protocol or XModem Upload Protocol entries. Default font is ID 1.
ID
2 bytes
*
, unique font identification number, LSB first
Size
4 bytes
*
, size of the entire font file, LSB first
Data
variable length, font file data, see Font File Creation for example
3.2
Set the
Current Font
Dec
Hex
ASCII
254 49
FE 31
■
1
ID
ID
ID
Set the font in use by specifying a unique identification number. Characters sent after the command will appear in
the font specified; previous text will not be affected. Default is 1.
ID
2 bytes
*
, unique font identification number
3.3
Set Font
Metrics
Dec
Hex
ASCII
254 50
FE 32
■
2
Line Margin Top Margin Character Spacing Line Spacing Scroll Start
Line Margin Top Margin Character Spacing Line Spacing Scroll Start
Line Margin Top Margin Character Spacing Line Spacing Scroll Start
Set the font spacing, or metrics, used with the current font. Changes only appear in text sent after command.
Line Margin
1 byte, space between left of display and first column of text. Default 0.
Top Margin
1 byte, space between top of display area and first row of text. Default 0.
Character Spacing
1 byte, space between characters. Default 0.
Line Spacing
1 byte, space between character rows. Default 1.
Scroll Start
1 byte, point at which text scrolls up screen to display additional rows. Default height-1.
3.4
Set Box Space
Mode
Dec
Hex
254 172
FE AC
Switch
Switch
Toggle box space on or off. When on, a character sized box is cleared from the screen before a character is
written. This eliminates any text or bitmap remnants behind the character. Default is on.
Switch
1 byte, 1 for on or 0 for off
*Note:
To accommodate additional memory, Font and Bitmap IDs have been increased to 2 bytes and size to 4
from firmware revision 8.1 onward. Please query your display revision to ensure this command is issued correctly.