beautypg.com

5fonts, 1 introduction – Matrix Orbital GLT240128 Legacy User Manual

Page 27

background image

5

Fonts

5.1

Introduction

The GLT24064 comes loaded with the ’Small Filled’ and ’Futura Bk BT 16’ fonts by default. However,

it is capable of displaying any font that is uploaded to it in the correct format. MOGD# provides a simple
method of generating font files from your installed fonts. For instructions on how to install MOGD# see
Section 1.5.1 on page 5.

5.1.1

Font File Format

A font file consists of three parts, a header, a character table and bitmap data.

1. Header (4 bytes)

(a) Nominal Width (1 byte)

(b) Height (1 byte)

(c) ASCII Start Value (1 byte)

(d) ASCII End Value (1 byte)

2. Character Table (3 bytes for every character between the ASCII Start and End values inclusive)

(a) High Offset MSB (1 byte)

(b) Low Offset LSB(1 byte)

(c) Character Width (1 byte)

3. Bitmap Data

5.1.2

Creating a Font

The following is an example of how to create a font file for the letters h, i and j.
First you must create the bitmaps containing the character data in bitmap form. Figure 22 below illus-

trates the bit pattern for the h, i and j bitmap data.

Figure 22: Bitmaps for h, i, and j

Second you may begin to create the font file starting with the header. The header will contain the nominal

width, the height and the ASCII start and end values inclusive that you wish to create characters for.

Matrix Orbital

GLT240128

22