beautypg.com

4 working with font files – Matrix Orbital GLK24064-25 Legacy User Manual

Page 29

background image

6.3.3 Upload Font (254 36 [ref] [file size] [file data])

This command begins a font upload to the display’s non-volatile memory. [ref] is the reference number

to be used for this font. File size is a 2 byte value that must be calculated by the host before the transfer takes

place.

6.3.4 Upload Bitmap (254 94[ref] [file size] [file data])

This command begins a bitmap upload to the display’s non volatile memory. [ref] is the reference number

to be used for this bitmap. File size is a 2 byte value that must be calculated by the host before the transfer

takes place.

6.4 Working with Font Files

A font file consists of a header, a character list, and character bitmaps.
The header consists of;

• Placeholder for actual EOF (2 bytes, use 0xFF 0xFF - these bytes will be set to their final value by the

module)

• Nominal character width (1 byte)

• Absolute font height (1 byte)

• ASCII value of first character defined in this file (1 byte)

• ASCII value of last character defined in this file (1 byte)

The character list consists of groups of 3 bytes per character;

• Offset to character bitmap (2 bytes)

• Actual width of this character (1 byte)

6.4.1 Font File in Table Form

The Table below shows the layout of a font file in table form.

Matrix Orbital

GLK24064-25

25