Fonts - Code format
The bitmap as shown in the last slide is described by a record within an array, which coverts the whole character set
/* element within array, index 36 */
Notes:
The array shown in the last slide is missing size and offset information, so a small structure is needed to accompany it. For an entire font there would be an array of these structures, one for each character, and ordered according to the ASCII mapping. For the reasons just discussed this array should also be declared constant.
This structure contains the size and offset information, which tells us exactly where to draw the bitmap. It also has a pointer to the array we saw in the last slide, so we know what to draw for a given character. And in the bitmap section we covered how to draw it.