beautypg.com

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

Page 26

background image

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

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

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

7.4.1 Font File in Table Form

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

Matrix Orbital

GLK12232-25-SM

22