Font 8x16 [hot] Access

CGA was a nightmare for text. It primarily used an 8x8 font. While it saved memory, an 8x8 cell left no room for descenders. The bottom of a 'y' would crash into the top of the 'g' below it. Reading code on CGA gave users migraines.

An 8x16 font is a (or raster) font. Unlike vector fonts (like TTF or OTF) which use mathematical curves to scale smoothly, a bitmap font is a grid of pixels. For every character in the set, there is a specific pattern of black and white (or green and black) dots. font 8x16

void shift_right(uint8_t *glyph, int bits) for (int i = 0; i < 16; i++) glyph[i] = (glyph[i] >> bits) & 0xFF; CGA was a nightmare for text