beautypg.com

Fonts, 3 fonts – Matrix Orbital GLK24064-16-1U User Manual

Page 23

background image

18


5.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.

ID

1 byte, unique font identification number, must be less than 128

Size

2 bytes, LSB followed by MSB, size of the entire font file

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

1 byte, 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