diff options
| author | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2022-10-07 16:42:35 +0200 |
|---|---|---|
| committer | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2022-10-07 16:42:35 +0200 |
| commit | 1155e97dab101fd1215e12ff8737048b0f6bedaf (patch) | |
| tree | 91ac7806d9c39593a5c6972e9fe02fa6fbb882b0 /stage3/letters.c | |
| parent | f8397815545adb7d0da36614e0065aa68453a2e4 (diff) | |
| download | cuddles-1155e97dab101fd1215e12ff8737048b0f6bedaf.tar.xz | |
Font rendering
Diffstat (limited to 'stage3/letters.c')
| -rw-r--r-- | stage3/letters.c | 213 |
1 files changed, 213 insertions, 0 deletions
diff --git a/stage3/letters.c b/stage3/letters.c new file mode 100644 index 0000000..11f1d46 --- /dev/null +++ b/stage3/letters.c @@ -0,0 +1,213 @@ +#include "font.h" +#include "def.h" + +u8 letters['z' - 'a' + 1][CHAR_HEIGHT * CHAR_WIDTH] = { + // a + { + 1, 1, 1, + 1, 0, 1, + 1, 1, 1, + 1, 0, 1, + 1, 0, 1 + }, + // b + { + 1, 1, 0, + 1, 0, 1, + 1, 1, 1, + 1, 0, 1, + 1, 1, 0 + }, + // c + { + 1, 1, 1, + 1, 0, 0, + 1, 0, 0, + 1, 0, 0, + 1, 1, 1 + }, + // d + { + 1, 1, 0, + 1, 0, 1, + 1, 0, 1, + 1, 0, 1, + 1, 1, 0 + }, + // e + { + 1, 1, 1, + 1, 0, 0, + 1, 1, 1, + 1, 0, 0, + 1, 1, 1 + }, + // f + { + 1, 1, 1, + 1, 0, 0, + 1, 1, 1, + 1, 0, 0, + 1, 0, 0 + }, + // g + { + 1, 1, 1, + 1, 0, 0, + 1, 0, 1, + 1, 0, 1, + 1, 1, 1 + }, + // h + { + 1, 0, 1, + 1, 0, 1, + 1, 1, 1, + 1, 0, 1, + 1, 0, 1 + }, + // i + { + 0, 1, 0, + 0, 1, 0, + 0, 1, 0, + 0, 1, 0, + 0, 1, 0 + }, + // j + { + 0, 0, 1, + 0, 0, 1, + 0, 0, 1, + 0, 0, 1, + 1, 1, 1 + }, + // k + { + 1, 0, 1, + 1, 1, 0, + 1, 0, 0, + 1, 1, 0, + 1, 0, 1, + }, + // l + { + 1, 0, 0, + 1, 0, 0, + 1, 0, 0, + 1, 0, 0, + 1, 1, 1 + }, + // m + { + 1, 0, 1, + 1, 1, 1, + 1, 0, 1, + 1, 0, 1, + 1, 0, 1 + }, + // n + { + 1, 0, 1, + 1, 0, 1, + 1, 1, 1, + 1, 1, 1, + 1, 0, 1 + }, + // o + { + 1, 1, 1, + 1, 0, 1, + 1, 0, 1, + 1, 0, 1, + 1, 1, 1 + }, + // p + { + 1, 1, 1, + 1, 0, 1, + 1, 1, 1, + 1, 0, 0, + 1, 0, 0 + }, + // q + { + 1, 1, 1, + 1, 0, 1, + 1, 0, 1, + 1, 1, 1, + 0, 0, 1 + }, + // r + { + 1, 1, 1, + 1, 0, 1, + 1, 1, 1, + 1, 1, 0, + 1, 0, 1 + }, + // s + { + 1, 1, 1, + 1, 0, 0, + 1, 1, 1, + 0, 0, 1, + 1, 1, 1 + }, + // t + { + 1, 1, 1, + 0, 1, 0, + 0, 1, 0, + 0, 1, 0, + 0, 1, 0 + }, + // u + { + 1, 0, 1, + 1, 0, 1, + 1, 0, 1, + 1, 0, 1, + 1, 1, 1 + }, + // v + { + 1, 0, 1, + 1, 0, 1, + 1, 0, 1, + 1, 0, 1, + 0, 1, 0 + }, + // w + { + 1, 0, 1, + 1, 0, 1, + 1, 0, 1, + 1, 1, 1, + 1, 0, 1 + }, + // x + { + 1, 0, 1, + 1, 0, 1, + 0, 1, 0, + 1, 0, 1, + 1, 0, 1 + }, + // y + { + 1, 0, 1, + 1, 0, 1, + 1, 1, 1, + 0, 1, 0, + 0, 1, 0 + }, + // z + { + 1, 1, 1, + 0, 0, 1, + 0, 1, 0, + 1, 0, 0, + 1, 1, 1 + } +}; |
