Skip to content

Instantly share code, notes, and snippets.

@simias
Created Oct 20, 2017
Embed
What would you like to do?
/* 4bpp 3x5 pixel font (texture size: 192 x 10, 240 32bit words) */
const uint8_t font[192 * 10 / 2] = {
0x00, 0x00, 0x10, 0x10, 0x11, 0x01, 0x01, 0x11,
0x01, 0x01, 0x00, 0x10, 0x00, 0x11, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
0x11, 0x10, 0x10, 0x11, 0x01, 0x10, 0x10, 0x11,
0x11, 0x11, 0x11, 0x11, 0x01, 0x01, 0x11, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x11,
0x11, 0x10, 0x10, 0x11, 0x00, 0x11, 0x01, 0x11,
0x11, 0x11, 0x10, 0x11, 0x10, 0x11, 0x11, 0x00,
0x11, 0x01, 0x10, 0x01, 0x01, 0x11, 0x00, 0x10,
0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
0x01, 0x10, 0x11, 0x01, 0x10, 0x11, 0x01, 0x11,
0x11, 0x10, 0x10, 0x00, 0x11, 0x01, 0x00, 0x00,
0x00, 0x00, 0x10, 0x10, 0x11, 0x11, 0x11, 0x00,
0x01, 0x10, 0x10, 0x10, 0x01, 0x00, 0x10, 0x10,
0x10, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
0x10, 0x11, 0x10, 0x00, 0x10, 0x01, 0x10, 0x11,
0x00, 0x10, 0x00, 0x01, 0x10, 0x11, 0x01, 0x01,
0x00, 0x10, 0x01, 0x01, 0x11, 0x01, 0x00, 0x01,
0x10, 0x11, 0x01, 0x10, 0x11, 0x00, 0x10, 0x11,
0x00, 0x10, 0x01, 0x00, 0x10, 0x10, 0x10, 0x00,
0x11, 0x01, 0x10, 0x01, 0x11, 0x10, 0x11, 0x01,
0x10, 0x11, 0x01, 0x10, 0x11, 0x00, 0x01, 0x01,
0x01, 0x10, 0x11, 0x01, 0x10, 0x11, 0x01, 0x00,
0x11, 0x00, 0x10, 0x00, 0x01, 0x10, 0x10, 0x00,
0x00, 0x00, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00,
0x10, 0x01, 0x10, 0x00, 0x11, 0x00, 0x11, 0x01,
0x01, 0x11, 0x00, 0x01, 0x11, 0x00, 0x00, 0x10,
0x10, 0x10, 0x10, 0x01, 0x01, 0x10, 0x11, 0x11,
0x11, 0x11, 0x10, 0x10, 0x01, 0x01, 0x11, 0x00,
0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x11,
0x00, 0x11, 0x11, 0x11, 0x01, 0x00, 0x10, 0x11,
0x10, 0x11, 0x01, 0x01, 0x11, 0x10, 0x10, 0x00,
0x11, 0x10, 0x10, 0x01, 0x01, 0x10, 0x11, 0x01,
0x11, 0x11, 0x01, 0x11, 0x11, 0x11, 0x01, 0x01,
0x01, 0x10, 0x11, 0x01, 0x01, 0x00, 0x10, 0x01,
0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0x11, 0x01, 0x11,
0x00, 0x11, 0x00, 0x00, 0x01, 0x00, 0x10, 0x10,
0x10, 0x10, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00,
0x10, 0x10, 0x10, 0x10, 0x00, 0x01, 0x00, 0x10,
0x01, 0x10, 0x11, 0x00, 0x10, 0x10, 0x01, 0x01,
0x00, 0x10, 0x01, 0x01, 0x11, 0x01, 0x00, 0x00,
0x11, 0x11, 0x01, 0x10, 0x11, 0x00, 0x10, 0x11,
0x00, 0x10, 0x01, 0x01, 0x10, 0x10, 0x10, 0x10,
0x11, 0x01, 0x10, 0x01, 0x01, 0x10, 0x11, 0x01,
0x10, 0x01, 0x11, 0x11, 0x00, 0x01, 0x01, 0x01,
0x01, 0x10, 0x11, 0x11, 0x10, 0x10, 0x10, 0x10,
0x01, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x10, 0x00, 0x01, 0x01, 0x11, 0x01,
0x01, 0x01, 0x10, 0x00, 0x00, 0x11, 0x00, 0x00,
0x00, 0x00, 0x10, 0x00, 0x00, 0x01, 0x01, 0x00,
0x11, 0x11, 0x11, 0x11, 0x11, 0x10, 0x00, 0x11,
0x11, 0x11, 0x11, 0x00, 0x01, 0x01, 0x11, 0x00,
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10,
0x11, 0x11, 0x01, 0x01, 0x10, 0x11, 0x11, 0x01,
0x11, 0x10, 0x00, 0x10, 0x10, 0x11, 0x11, 0x11,
0x11, 0x01, 0x11, 0x11, 0x01, 0x10, 0x10, 0x10,
0x10, 0x00, 0x01, 0x10, 0x11, 0x11, 0x01, 0x01,
0x11, 0x01, 0x01, 0x01, 0x10, 0x10, 0x10, 0x11,
0x11, 0x10, 0x00, 0x10, 0x11, 0x00, 0x01, 0x11,
0x10, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10,
0x00, 0x01, 0x10, 0x00, 0x10, 0x00, 0x00, 0x00,
0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x11, 0x01, 0x01, 0x10, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x10, 0x10, 0x00, 0x11, 0x00, 0x10,
0x10, 0x01, 0x00, 0x10, 0x10, 0x00, 0x10, 0x00,
0x01, 0x00, 0x01, 0x01, 0x11, 0x11, 0x00, 0x10,
0x11, 0x00, 0x11, 0x10, 0x00, 0x10, 0x01, 0x01,
0x01, 0x10, 0x11, 0x01, 0x10, 0x11, 0x01, 0x11,
0x10, 0x10, 0x01, 0x00, 0x10, 0x00, 0x10, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x01, 0x01, 0x11, 0x01, 0x00, 0x01, 0x11,
0x01, 0x11, 0x11, 0x01, 0x11, 0x00, 0x00, 0x00,
0x11, 0x01, 0x01, 0x01, 0x11, 0x10, 0x11, 0x01,
0x10, 0x11, 0x01, 0x11, 0x01, 0x00, 0x11, 0x11,
0x01, 0x10, 0x11, 0x01, 0x01, 0x01, 0x01, 0x01,
0x11, 0x10, 0x01, 0x00, 0x11, 0x11, 0x10, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x01, 0x01, 0x10, 0x11, 0x00, 0x10, 0x11,
0x10, 0x01, 0x00, 0x11, 0x10, 0x10, 0x10, 0x00,
0x11, 0x10, 0x01, 0x01, 0x01, 0x10, 0x11, 0x01,
0x11, 0x00, 0x11, 0x10, 0x00, 0x10, 0x01, 0x01,
0x01, 0x10, 0x11, 0x11, 0x01, 0x00, 0x10, 0x11,
0x00, 0x10, 0x01, 0x00, 0x10, 0x10, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x11, 0x11, 0x00, 0x11, 0x01, 0x10,
0x11, 0x01, 0x01, 0x00, 0x10, 0x10, 0x10, 0x01,
0x01, 0x01, 0x01, 0x11, 0x01, 0x10, 0x10, 0x10,
0x10, 0x00, 0x01, 0x10, 0x01, 0x00, 0x01, 0x11,
0x11, 0x01, 0x01, 0x11, 0x10, 0x11, 0x10, 0x11,
0x10, 0x11, 0x01, 0x01, 0x10, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment