First Previous Index Home Text Slide 11 of 11
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.

    [return to course outline]