aboutsummaryrefslogtreecommitdiff
path: root/src/font33.c
diff options
context:
space:
mode:
authorpk33 <pk33@pk33.space>2024-11-03 22:26:28 +0100
committerpk33 <pk33@pk33.space>2024-11-03 22:26:28 +0100
commit0ffb4f8463e3e06e8d88b7be22f5cb7adb702361 (patch)
tree05e626d6ce4e0d8e544a40f8a14965cf4fdd5780 /src/font33.c
parent6c69ea8da9d306e4e6d21d0feee5213fea15f49e (diff)
downloadengine33-0ffb4f8463e3e06e8d88b7be22f5cb7adb702361.tar.gz
fonts, text and basic ui for on-screen log
Diffstat (limited to 'src/font33.c')
-rw-r--r--src/font33.c116
1 files changed, 116 insertions, 0 deletions
diff --git a/src/font33.c b/src/font33.c
new file mode 100644
index 0000000..43e2145
--- /dev/null
+++ b/src/font33.c
@@ -0,0 +1,116 @@
+#include "strings33.h"
+
+
+Font33 bigFont = {
+ 8, 0x00FF, 24, 2, 24,
+ {
+ { 5, 24, {0x0000,0x1700,0x0017,0x1717,0x0B0B} },
+ { 5, 24, {0x0B00,0x000B,0x170B,0x0B17,0x0B0B} },
+ }
+};
+
+/* plots, width */
+
+/* h, ngly, mwid */
+Font33 defFont = {
+ 4, 0x0F, 16, 96, 13,
+ {
+ /* */{ 0, 3, {0} },
+ /* ! */{ 9, 3, {0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1B,0x1C} },
+ /* " */{ 8, 5, {0x11,0x31,0x12,0x32,0x13,0x33,0x14,0x34} },
+ /* # */{ 38, 12, {0x62,0xA2,0x63,0xA3,0x54,0x94,0x15,0x25,0x35,0x45,0x55,0x65,0x75,0x85,0x95,0xA5,0xB5,0x46,0x86,0x47,0x87,0x18,0x28,0x38,0x48,0x58,0x68,0x78,0x88,0x98,0xA8,0xB8,0x39,0x79,0x2A,0x6A,0x2B,0x6B} },
+ /* $ */{ 26, 8, {0x41,0x32,0x42,0x52,0x23,0x43,0x63,0x14,0x44,0x25,0x45,0x36,0x46,0x47,0x58,0x48,0x68,0x49,0x69,0x1A,0x4A,0x5A,0x2B,0x3B,0x4B,0x4C} },
+ /* % */{ 28, 10, {0x22,0x32,0x13,0x43,0x93,0x14,0x44,0x84,0x15,0x45,0x75,0x26,0x36,0x66,0x57,0x77,0x87,0x48,0x68,0x98,0x39,0x69,0x99,0x2A,0x6A,0x9A,0x7B,0x8B} },
+ /* & */{ 28, 11, {0x32,0x42,0x52,0x23,0x63,0x24,0x64,0x35,0x65,0x36,0x46,0x56,0x27,0x67,0x97,0x18,0x78,0x88,0x19,0x79,0x89,0x2A,0x6A,0x9A,0x3B,0x4B,0x5B,0xAB} },
+ /* ' */{ 5, 3, {0x01,0x11,0x12,0x13,0x04} },
+ /* ( */{ 11, 4, {0x32,0x23,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x2B,0x3C} },
+ /* ) */{ 11, 4, {0x02,0x13,0x24,0x25,0x26,0x27,0x28,0x29,0x2A,0x1B,0x0C} },
+ /* * */{ 14, 8, {0x42,0x43,0x14,0x24,0x34,0x44,0x54,0x64,0x74,0x45,0x36,0x56,0x27,0x67} },
+ /* + */{ 13, 6, {0x34,0x35,0x36,0x07,0x17,0x27,0x37,0x47,0x57,0x67,0x38,0x39,0x3A} },
+ /* , */{ 5, 4, {0x19,0x29,0x2A,0x2B,0x1C} },
+ /* - */{ 4, 6, {0x17,0x27,0x37,0x47} },
+ /* . */{ 1, 3, {0x1B} },
+ /* / */{ 12, 6, {0x40,0x41,0x42,0x33,0x34,0x35,0x26,0x27,0x28,0x19,0x1A,0x1B} },
+ /* 0 */{ 26, 8, {0x32,0x42,0x23,0x53,0x14,0x54,0x64,0x15,0x45,0x65,0x16,0x46,0x66,0x17,0x37,0x67,0x18,0x38,0x68,0x19,0x29,0x69,0x2A,0x5A,0x3B,0x4B} },
+ /* 1 */{ 16, 6, {0x32,0x23,0x33,0x14,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x1B,0x2B,0x3B,0x4B,0x5B} },
+ /* 2 */{ 18, 8, {0x22,0x32,0x42,0x13,0x53,0x64,0x65,0x56,0x47,0x38,0x29,0x1A,0x1B,0x2B,0x3B,0x4B,0x5B,0x6B} },
+ /* 3 */{ 18, 7, {0x22,0x32,0x42,0x13,0x53,0x54,0x55,0x26,0x36,0x46,0x57,0x58,0x59,0x1A,0x5A,0x2B,0x3B,0x4B} },
+ /* 4 */{ 18, 7, {0x12,0x13,0x14,0x15,0x16,0x46,0x17,0x47,0x18,0x48,0x19,0x29,0x39,0x49,0x59,0x69,0x4A,0x4B} },
+ /* 5 */{ 19, 7, {0x12,0x22,0x32,0x42,0x52,0x13,0x14,0x15,0x25,0x35,0x46,0x57,0x58,0x59,0x1A,0x5A,0x2B,0x3B,0x4B} },
+ /* 6 */{ 20, 8, {0x32,0x42,0x23,0x53,0x14,0x15,0x16,0x36,0x46,0x17,0x27,0x57,0x18,0x68,0x19,0x69,0x2A,0x5A,0x3B,0x4B} },
+ /* 7 */{ 14, 6, {0x12,0x22,0x32,0x42,0x52,0x53,0x44,0x45,0x36,0x37,0x28,0x29,0x1A,0x1B} },
+ /* 8 */{ 20, 8, {0x32,0x42,0x23,0x53,0x14,0x64,0x25,0x55,0x36,0x46,0x27,0x57,0x18,0x68,0x19,0x69,0x2A,0x5A,0x3B,0x4B} },
+ /* 9 */{ 20, 8, {0x22,0x32,0x42,0x52,0x13,0x63,0x14,0x64,0x15,0x65,0x26,0x66,0x37,0x47,0x57,0x67,0x68,0x69,0x6A,0x6B} },
+ /* : */{ 2, 3, {0x16,0x1B} },
+ /* ; */{ 6, 3, {0x27,0x29,0x2A,0x2B,0x1C,0x1D} },
+ /* < */{ 11, 6, {0x53,0x24,0x34,0x44,0x15,0x06,0x17,0x28,0x38,0x48,0x59} },
+ /* = */{ 12, 8, {0x16,0x26,0x36,0x46,0x56,0x66,0x19,0x29,0x39,0x49,0x59,0x69} },
+ /* > */{ 11, 6, {0x03,0x14,0x24,0x34,0x45,0x56,0x47,0x18,0x28,0x38,0x09} },
+ /* ? */{ 16, 8, {0x20,0x30,0x40,0x50,0x11,0x61,0x02,0x62,0x63,0x64,0x55,0x46,0x37,0x38,0x39,0x3B} },
+ /* @ */{ 44, 13, {0x42,0x52,0x62,0x72,0x82,0x92,0x33,0xA3,0x24,0x54,0x64,0x74,0xB4,0x15,0x45,0x85,0xB5,0x16,0x36,0x86,0xB6,0x17,0x37,0x87,0xB7,0x18,0x38,0x78,0x98,0xB8,0x19,0x49,0x59,0x69,0xA9,0x2A,0x3B,0x4B,0x5B,0x6B,0x7B,0x8B,0x9B,0xAB} },
+ /* A */{ 24, 8, {0x32,0x42,0x23,0x53,0x14,0x64,0x15,0x65,0x16,0x26,0x36,0x46,0x56,0x66,0x17,0x67,0x18,0x68,0x19,0x69,0x1A,0x6A,0x1B,0x6B} },
+ /* B */{ 26, 7, {0x12,0x22,0x32,0x42,0x13,0x53,0x14,0x54,0x15,0x55,0x16,0x26,0x36,0x46,0x17,0x57,0x18,0x58,0x19,0x59,0x1A,0x5A,0x1B,0x2B,0x3B,0x4B} },
+ /* C */{ 14, 7, {0x32,0x42,0x25,0x53,0x14,0x15,0x16,0x17,0x18,0x19,0x2A,0x5A,0x3B,0x4B} },
+ /* D */{ 23, 7, {0x12,0x22,0x32,0x13,0x43,0x14,0x54,0x15,0x55,0x16,0x56,0x17,0x57,0x18,0x58,0x19,0x59,0x1A,0x5A,0x1B,0x2B,0x3B,0x4B} },
+ /* E */{ 20, 6, {0x12,0x22,0x32,0x42,0x52,0x13,0x14,0x15,0x16,0x26,0x36,0x17,0x18,0x19,0x1A,0x1B,0x2B,0x3B,0x4B,0x5B} },
+ /* F */{ 16, 6, {0x12,0x22,0x32,0x42,0x52,0x13,0x14,0x15,0x16,0x26,0x36,0x17,0x18,0x19,0x1A,0x1B} },
+ /* G */{ 21, 8, {0x32,0x42,0x52,0x23,0x63,0x14,0x15,0x16,0x46,0x56,0x17,0x67,0x18,0x68,0x19,0x69,0x2A,0x6A,0x3B,0x4B,0x5B} },
+ /* H */{ 23, 7, {0x12,0x52,0x13,0x53,0x14,0x54,0x15,0x55,0x16,0x26,0x36,0x46,0x56,0x17,0x57,0x18,0x58,0x19,0x59,0x1A,0x5A,0x1B,0x5B} },
+ /* I */{ 14, 3, {0x02,0x12,0x22,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x0B,0x1B,0x2B} },
+ /* J */{ 18, 7, {0x12,0x22,0x32,0x42,0x52,0x62,0x43,0x44,0x45,0x46,0x47,0x48,0x19,0x49,0x1A,0x4A,0x2B,0x3B} },
+ /* K */{ 19, 7, {0x12,0x52,0x13,0x43,0x14,0x34,0x15,0x25,0x16,0x17,0x27,0x18,0x38,0x19,0x49,0x1A,0x5A,0x1B,0x6B} },
+ /* L */{ 14, 6, {0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x1B,0x2B,0x3B,0x4B,0x5B} },
+ /* M */{ 25, 9, {0x12,0x72,0x13,0x73,0x14,0x24,0x64,0x74,0x15,0x35,0x55,0x75,0x16,0x46,0x76,0x17,0x77,0x18,0x78,0x19,0x79,0x1A,0x7A,0x1B,0x7B} },
+ /* N */{ 28, 8, {0x12,0x62,0x13,0x23,0x63,0x14,0x34,0x64,0x15,0x35,0x65,0x16,0x46,0x66,0x17,0x47,0x67,0x18,0x48,0x68,0x19,0x59,0x69,0x1A,0x5A,0x6A,0x1B,0x6B} },
+ /* O */{ 20, 8, {0x32,0x42,0x23,0x53,0x14,0x64,0x15,0x65,0x16,0x66,0x17,0x67,0x18,0x68,0x19,0x69,0x2A,0x5A,0x3B,0x4B} },
+ /* P */{ 18, 7, {0x12,0x22,0x32,0x13,0x43,0x14,0x54,0x15,0x55,0x16,0x46,0x17,0x27,0x37,0x18,0x19,0x1A,0x1B} },
+ /* Q */{ 23, 8, {0x32,0x42,0x23,0x53,0x14,0x64,0x15,0x65,0x16,0x66,0x17,0x67,0x18,0x38,0x68,0x19,0x49,0x69,0x2A,0x5A,0x3B,0x4B,0x6B} },
+ /* R */{ 23, 7, {0x12,0x22,0x32,0x42,0x13,0x53,0x14,0x54,0x15,0x55,0x16,0x46,0x17,0x27,0x37,0x18,0x38,0x19,0x49,0x1A,0x5A,0x1B,0x5B} },
+ /* S */{ 14, 7, {0x32,0x42,0x23,0x53,0x14,0x25,0x36,0x47,0x58,0x59,0x1A,0x4A,0x2B,0x3B} },
+ /* T */{ 14, 5, {0x02,0x12,0x22,0x32,0x42,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2A,0x2B} },
+ /* U */{ 22, 8, {0x12,0x62,0x13,0x63,0x14,0x64,0x15,0x65,0x16,0x66,0x17,0x67,0x18,0x68,0x19,0x69,0x2A,0x5A,0x6A,0x3B,0x4B,0x6B} },
+ /* V */{ 18, 7, {0x12,0x52,0x13,0x53,0x14,0x54,0x15,0x55,0x16,0x56,0x27,0x47,0x28,0x48,0x29,0x49,0x3A,0x3B} },
+ /* W */{ 26, 9, {0x12,0x72,0x13,0x73,0x14,0x74,0x15,0x75,0x16,0x46,0x76,0x17,0x47,0x77,0x18,0x48,0x78,0x19,0x49,0x79,0x2A,0x4A,0x6A,0x3B,0x4B,0x5B} },
+ /* X */{ 19, 7, {0x12,0x52,0x13,0x53,0x24,0x44,0x25,0x45,0x36,0x27,0x47,0x28,0x48,0x19,0x59,0x1A,0x5A,0x1B,0x5B} },
+ /* Y */{ 14, 7, {0x12,0x52,0x13,0x53,0x14,0x54,0x25,0x45,0x36,0x37,0x38,0x39,0x3A,0x3B} },
+ /* Z */{ 18, 9, {0x12,0x22,0x32,0x42,0x52,0x53,0x44,0x45,0x36,0x27,0x28,0x19,0x1A,0x1B,0x2B,0x3B,0x4B,0x5B} },
+ /* [ */{ 17, 5, {0x22,0x32,0x42,0x52,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x3C,0x4C,0x5C} },
+ /* \ */{ 12, 6, {0x10,0x11,0x12,0x23,0x24,0x25,0x36,0x37,0x38,0x49,0x4A,0x4B} },
+ /* ] */{ 17, 5, {0x02,0x12,0x22,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x0C,0x1C,0x2C,0x3C} },
+ /* ^ */{ 10, 8, {0x32,0x42,0x23,0x53,0x24,0x54,0x25,0x55,0x16,0x66} },
+ /* _ */{ 7, 9, {0x1B,0x2B,0x3B,0x4B,0x5B,0x6B,0x7B} },
+ /* ` */{ 5, 4, {0x10,0x20,0x11,0x12,0x23} },
+ /* a */{ 17, 7, {0x26,0x36,0x46,0x17,0x57,0x28,0x38,0x48,0x58,0x19,0x59,0x1A,0x5A,0x2B,0x3B,0x4B,0x5B} },
+ /* b */{ 19, 7, {0x12,0x13,0x14,0x15,0x16,0x26,0x36,0x17,0x47,0x18,0x58,0x19,0x59,0x1A,0x5A,0x1B,0x2B,0x3B,0x4B} },
+ /* c */{ 10, 6, {0x26,0x36,0x46,0x17,0x18,0x19,0x1A,0x2B,0x3B,0x4B} },
+ /* d */{ 19, 7, {0x52,0x53,0x54,0x55,0x36,0x46,0x56,0x27,0x57,0x18,0x58,0x19,0x59,0x1A,0x5A,0x2B,0x3B,0x4B,0x5B} },
+ /* e */{ 16, 7, {0x26,0x36,0x46,0x17,0x57,0x18,0x58,0x19,0x29,0x39,0x49,0x1A,0x2B,0x3B,0x4B,0x5B} },
+ /* f */{ 15, 6, {0x34,0x44,0x25,0x55,0x26,0x27,0x18,0x28,0x38,0x29,0x2A,0x2B,0x2C,0x2D,0x1E} },
+ /* g */{ 22, 7, {0x26,0x36,0x46,0x17,0x57,0x18,0x58,0x19,0x59,0x1A,0x5A,0x2B,0x3B,0x4B,0x5B,0x5C,0x5D,0x1E,0x5E,0x2F,0x3F,0x4F} },
+ /* h */{ 18, 7, {0x12,0x13,0x14,0x15,0x16,0x36,0x46,0x17,0x27,0x57,0x18,0x58,0x19,0x59,0x1A,0x5A,0x1B,0x5B} },
+ /* i */{ 6, 3, {0x15,0x17,0x18,0x19,0x1A,0x1B} },
+ /* j */{ 13, 6, {0x45,0x47,0x48,0x49,0x4A,0x4B,0x4C,0x1D,0x4D,0x1E,0x4E,0x2F,0x3F} },
+ /* k */{ 16, 6, {0x12,0x13,0x14,0x15,0x16,0x46,0x17,0x37,0x18,0x28,0x19,0x39,0x1A,0x4A,0x1B,0x5B} },
+ /* l */{ 10, 3, {0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x1B} },
+ /* m */{ 19, 9, {0x26,0x36,0x56,0x66,0x17,0x47,0x77,0x18,0x48,0x78,0x19,0x49,0x79,0x1A,0x4A,0x7A,0x1B,0x4B,0x7B} },
+ /* n */{ 14, 7, {0x16,0x36,0x46,0x17,0x27,0x57,0x18,0x58,0x19,0x59,0x1A,0x5A,0x1B,0x5B} },
+ /* o */{ 14, 7, {0x26,0x36,0x46,0x17,0x57,0x18,0x58,0x19,0x59,0x1A,0x5A,0x2B,0x3B,0x4B} },
+ /* p */{ 19, 7, {0x26,0x36,0x46,0x17,0x57,0x18,0x58,0x19,0x59,0x1A,0x5A,0x1B,0x2B,0x3B,0x4B,0x1C,0x1D,0x1E,0x1F} },
+ /* q */{ 17, 7, {0x36,0x46,0x27,0x57,0x18,0x58,0x19,0x59,0x2A,0x5A,0x3B,0x4B,0x5B,0x5C,0x5D,0x5E,0x6F} },
+ /* r */{ 8, 5, {0x16,0x36,0x17,0x27,0x18,0x19,0x1A,0x1B} },
+ /* s */{ 14, 7, {0x26,0x36,0x46,0x56,0x66,0x17,0x28,0x38,0x48,0x59,0x5A,0x1B,0x2B,0x3B,0x4B} },
+ /* t */{ 12, 5, {0x13,0x14,0x15,0x16,0x26,0x36,0x17,0x18,0x19,0x1A,0x2B,0x3B} },
+ /* u */{ 13, 7, {0x16,0x56,0x17,0x57,0x18,0x58,0x19,0x59,0x1A,0x5A,0x2B,0x3B,0x4B} },
+ /* v */{ 10, 7, {0x16,0x56,0x17,0x57,0x28,0x48,0x29,0x49,0x3A,0x3B} },
+ /* w */{ 16, 7, {0x16,0x56,0x17,0x57,0x18,0x38,0x58,0x19,0x39,0x59,0x1A,0x3A,0x5A,0x2B,0x3B,0x4B} },
+ /* x */{ 11, 7, {0x16,0x56,0x27,0x47,0x38,0x29,0x49,0x2A,0x4A,0x1B,0x5B} },
+ /* y */{ 19, 7, {0x16,0x56,0x17,0x57,0x18,0x58,0x19,0x59,0x2A,0x3A,0x4A,0x5A,0x5B,0x5C,0x5D,0x1E,0x4E,0x2F,0x3F} },
+ /* z */{ 14, 7, {0x16,0x26,0x36,0x46,0x56,0x47,0x38,0x29,0x1A,0x1B,0x2B,0x3B,0x4B,0x5B} },
+ /* { */{ 13, 5, {0x32,0x42,0x23,0x24,0x25,0x16,0x07,0x18,0x29,0x2A,0x2B,0x3C,0x4C} },
+ /* | */{ 12, 3, {0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x1B} },
+ /* } */{ 13, 5, {0x02,0x12,0x23,0x24,0x25,0x36,0x47,0x38,0x29,0x2A,0x2B,0x0C,0x1C} },
+ /* ~ */{ 9, 11, {0x17,0x26,0x35,0x45,0x55,0x66,0x77,0x87,0x96} },
+ /* :) */{ 0, 0, {0} }
+ }
+};
+