
28
Command Summary
3.2
Set the
Current Font
Dec
Hex
ASCII
254 49
FE 31
■
1
ID
ID
ID
v8.0
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
*
Short
Unique font identification number, value between 0 and 1023.
*Note:
ID was changed from a Byte length at firmware revision 8.5
3.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
v8.0
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.
Line Space
Byte
Space between character rows. Default 1.
Scroll
Byte
Point at which text scrolls up screen to display additional rows. Default 1.
3.4
Set Box Space
Mode
Dec
Hex
ASCII
254 172
FE AC
■
¼
Switch
Switch
Switch
v8.0
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 22: 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.
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from