
22
4.3
Set Font
Metrics
Dec
Hex
ASCII
254 50
FE 32
■
2
LineMargin TopMargin CharSpace LineSpace Scroll
LineMargin TopMargin CharSpace LineSpace Scroll
LineMargin TopMargin CharSpace LineSpace Scroll
v5.8
Set the font spacing, or metrics, used with the current font. Changes only appear in text sent after command.
LineMargin
Byte
Space between left of display and first column of text. Default 0.
TopMargin
Byte
Space between top of display area and first row of text. Default 0.
CharSpace
Byte
Space between characters. Default 0.
LineSpace
Byte
Space between character rows. Default 1.
Scroll
Byte
Point at which text scrolls up screen to display additional rows. Default 1.
4.4
Set Box Space
Mode
Dec
Hex
ASCII
254 172
FE AC
■
¼
Switch
Switch
Switch
v5.8
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
Byte
1 for on or 0 for off.
Font File Creation
Matrix Orbital graphic displays are capable of displaying text in a wide variety of styles customizable to
suit any project design. Front files alter the style of text and appearance of the display.
By default, a Matrix Orbital graphic display is loaded with a small filled font in slot one and a future bk bt
16 style in slot two. Both are available at
www.matrixorbital.ca/software/graphic_fonts
The easiest way to create, add, or modify the fonts of any graphic display is through the MOGD# tool.
This provides a simple graphic interface that hides the more complex intricacies of the font file.
Table 12: Example
Font File Header
Maximum Width Character Height ASCII Start Value ASCII End Value
5
7
104
106
The font file header contains four bytes: First, the number of columns in the widest character; usually
‘w’, second, the pixel height of each character, and finally, the start and end values of the character
range. The range represents the values that must be sent to the display to trigger the characters to
appear on the screen. In the example, the decimal values corresponding to the lowercase letters ‘h’
through ‘j’ will be used resulting in the range shown.
Table 13: Example Character Table
MSB LSB Width
h
0
13
5
i
0
18
3
j
0
21
4