First Previous Next Last Index HomeText Slide 6 of 11

By switching to bitmap fonts we save CPU cycles and storage space - except maybe in the rare case where the bitmaps are huge, and would actually take up more space than the general form stored in a scaled font.

Each bitmap can be accessed with an array where the index of the array corresponds to an ASCII character, or maybe a different mapping if you are implementing Japanese or Chinese characters - but more on international character sets later.

Displaying a string is a simple case of taking the string that needs to be displayed and displaying the bitmap for each letter in the string. As each bitmap is displayed, the current position has to be moved to the right by the width of one character.