2 /* Hand composed "Minuscule" 4x6 font, with binary data generated using
5 * Use 'perl -x mini_4x6.c < mini_4x6.c > new_version.c' to regenerate
8 * Created by Kenneth Albanowski.
9 * No rights reserved, released to the public domain.
18 s{((0x)?[0-9a-fA-F]+)(.*\[([\*\ ]{4})\])}{
20 ($num,$pat,$bits) = ($1,$3,$4);
22 $bits =~ s/([^\s0])|(.)/ defined($1) + 0 /ge;
24 $num = ord(pack("B8", $bits));
26 $num = sprintf("0x%.2x", $num);
28 #print "$num,$pat,$bits\n";
36 /* Note: binary data consists of one byte for each row of each character top
37 to bottom, character 0 to character 255, six bytes per character. Each
38 byte contains the same four character bits in both nybbles.
39 MSBit to LSBit = left to right.
42 #ifndef _VIDEO_FONT_DATA_
43 #define _VIDEO_FONT_DATA_
45 #define VIDEO_FONT_CHARS 256
46 #define VIDEO_FONT_WIDTH 4
47 #define VIDEO_FONT_HEIGHT 6
48 #define VIDEO_FONT_SIZE (VIDEO_FONT_CHARS * VIDEO_FONT_HEIGHT)
50 static unsigned char video_fontdata[VIDEO_FONT_SIZE] = {
520 /*{*/ /* Char 52: '4' */
528 /*{*/ /* Char 53: '5' */
536 /*{*/ /* Char 54: '6' */
544 /*{*/ /* Char 55: '7' */
552 /*{*/ /* Char 56: '8' */
560 /*{*/ /* Char 57: '9' */
568 /*{*/ /* Char 58: ':' */
576 /*{*/ /* Char 59: ';' */
584 /*{*/ /* Char 60: '<' */
592 /*{*/ /* Char 61: '=' */
600 /*{*/ /* Char 62: '>' */
608 /*{*/ /* Char 63: '?' */
616 /*{*/ /* Char 64: '@' */
624 /*{*/ /* Char 65: 'A' */
632 /*{*/ /* Char 66: 'B' */
640 /*{*/ /* Char 67: 'C' */
648 /*{*/ /* Char 68: 'D' */
656 /*{*/ /* Char 69: 'E' */
664 /*{*/ /* Char 70: 'F' */
672 /*{*/ /* Char 71: 'G' */
680 /*{*/ /* Char 72: 'H' */
688 /*{*/ /* Char 73: 'I' */
696 /*{*/ /* Char 74: 'J' */
704 /*{*/ /* Char 75: 'K' */
712 /*{*/ /* Char 76: 'L' */
720 /*{*/ /* Char 77: 'M' */
728 /*{*/ /* Char 78: 'N' */
736 /*{*/ /* Char 79: 'O' */
744 /*{*/ /* Char 80: 'P' */
752 /*{*/ /* Char 81: 'Q' */
760 /*{*/ /* Char 82: 'R' */
768 /*{*/ /* Char 83: 'S' */
776 /*{*/ /* Char 84: 'T' */
784 /*{*/ /* Char 85: 'U' */
792 /*{*/ /* Char 86: 'V' */
800 /*{*/ /* Char 87: 'W' */
808 /*{*/ /* Char 88: 'X' */
816 /*{*/ /* Char 89: 'Y' */
824 /*{*/ /* Char 90: 'Z' */
832 /*{*/ /* Char 91: '[' */
840 /*{*/ /* Char 92: '\' */
848 /*{*/ /* Char 93: ']' */
856 /*{*/ /* Char 94: '^' */
864 /*{*/ /* Char 95: '_' */
872 /*{*/ /* Char 96: '`' */
880 /*{*/ /* Char 97: 'a' */
888 /*{*/ /* Char 98: 'b' */
896 /*{*/ /* Char 99: 'c' */
904 /*{*/ /* Char 100: 'd' */
912 /*{*/ /* Char 101: 'e' */
920 /*{*/ /* Char 102: 'f' */
928 /*{*/ /* Char 103: 'g' */
936 /*{*/ /* Char 104: 'h' */
944 /*{*/ /* Char 105: 'i' */
952 /*{*/ /* Char 106: 'j' */
960 /*{*/ /* Char 107: 'k' */
968 /*{*/ /* Char 108: 'l' */
976 /*{*/ /* Char 109: 'm' */
984 /*{*/ /* Char 110: 'n' */
992 /*{*/ /* Char 111: 'o' */
1000 /*{*/ /* Char 112: 'p' */
1008 /*{*/ /* Char 113: 'q' */
1016 /*{*/ /* Char 114: 'r' */
1024 /*{*/ /* Char 115: 's' */
1032 /*{*/ /* Char 116: 't' */
1040 /*{*/ /* Char 117: 'u' */
1048 /*{*/ /* Char 118: 'v' */
1056 /*{*/ /* Char 119: 'w' */
1064 /*{*/ /* Char 120: 'x' */
1072 /*{*/ /* Char 121: 'y' */
1080 /*{*/ /* Char 122: 'z' */
1088 /*{*/ /* Char 123: '{' */
1096 /*{*/ /* Char 124: '|' */
1104 /*{*/ /* Char 125: '}' */
1112 /*{*/ /* Char 126: '~' */
1120 /*{*/ /* Char 127: '
\7f' */
1128 /*{*/ /* Char 128: */
1136 /*{*/ /* Char 129: */
1144 /*{*/ /* Char 130: */
1152 /*{*/ /* Char 131: */
1160 /*{*/ /* Char 132: */
1168 /*{*/ /* Char 133: */
1176 /*{*/ /* Char 134: */
1184 /*{*/ /* Char 135: */
1192 /*{*/ /* Char 136: */
1200 /*{*/ /* Char 137: */
1208 /*{*/ /* Char 138: */
1216 /*{*/ /* Char 139: */
1224 /*{*/ /* Char 140: */
1232 /*{*/ /* Char 141: */
1240 /*{*/ /* Char 142: */
1248 /*{*/ /* Char 143: */
1256 /*{*/ /* Char 144: */
1264 /*{*/ /* Char 145: */
1272 /*{*/ /* Char 146: */
1280 /*{*/ /* Char 147: */
1288 /*{*/ /* Char 148: */
1296 /*{*/ /* Char 149: */
1304 /*{*/ /* Char 150: */
1312 /*{*/ /* Char 151: */
1320 /*{*/ /* Char 152: */
1328 /*{*/ /* Char 153: */
1336 /*{*/ /* Char 154: */
1344 /*{*/ /* Char 155: */
1352 /*{*/ /* Char 156: */
1360 /*{*/ /* Char 157: */
1368 /*{*/ /* Char 158: */
1376 /*{*/ /* Char 159: */
1384 /*{*/ /* Char 160: */
1392 /*{*/ /* Char 161: */
1400 /*{*/ /* Char 162: */
1408 /*{*/ /* Char 163: */
1416 /*{*/ /* Char 164: */
1424 /*{*/ /* Char 165: */
1432 /*{*/ /* Char 166: */
1440 /*{*/ /* Char 167: */
1448 /*{*/ /* Char 168: */
1456 /*{*/ /* Char 169: */
1464 /*{*/ /* Char 170: */
1472 /*{*/ /* Char 171: */
1480 /*{*/ /* Char 172: */
1488 /*{*/ /* Char 173: */
1496 /*{*/ /* Char 174: */
1504 /*{*/ /* Char 175: */
1512 /*{*/ /* Char 176: */
1520 /*{*/ /* Char 177: */
1528 /*{*/ /* Char 178: */
1536 /*{*/ /* Char 179: */
1544 /*{*/ /* Char 180: */
1552 /*{*/ /* Char 181: */
1560 /*{*/ /* Char 182: */
1568 /*{*/ /* Char 183: */
1576 /*{*/ /* Char 184: */
1584 /*{*/ /* Char 185: */
1592 /*{*/ /* Char 186: */
1600 /*{*/ /* Char 187: */
1608 /*{*/ /* Char 188: */
1616 /*{*/ /* Char 189: */
1624 /*{*/ /* Char 190: */
1632 /*{*/ /* Char 191: */
1640 /*{*/ /* Char 192: */
1648 /*{*/ /* Char 193: */
1656 /*{*/ /* Char 194: */
1664 /*{*/ /* Char 195: */
1672 /*{*/ /* Char 196: */
1680 /*{*/ /* Char 197: */
1688 /*{*/ /* Char 198: */
1696 /*{*/ /* Char 199: */
1704 /*{*/ /* Char 200: */
1712 /*{*/ /* Char 201: */
1720 /*{*/ /* Char 202: */
1728 /*{*/ /* Char 203: */
1736 /*{*/ /* Char 204: */
1744 /*{*/ /* Char 205: */
1752 /*{*/ /* Char 206: */
1760 /*{*/ /* Char 207: */
1768 /*{*/ /* Char 208: */
1776 /*{*/ /* Char 209: */
1784 /*{*/ /* Char 210: */
1792 /*{*/ /* Char 211: */
1800 /*{*/ /* Char 212: */
1808 /*{*/ /* Char 213: */
1816 /*{*/ /* Char 214: */
1824 /*{*/ /* Char 215: */
1832 /*{*/ /* Char 216: */
1840 /*{*/ /* Char 217: */
1848 /*{*/ /* Char 218: */
1856 /*{*/ /* Char 219: */
1864 /*{*/ /* Char 220: */
1872 /*{*/ /* Char 221: */
1880 /*{*/ /* Char 222: */
1888 /*{*/ /* Char 223: */
1896 /*{*/ /* Char 224: */
1904 /*{*/ /* Char 225: */
1912 /*{*/ /* Char 226: */
1920 /*{*/ /* Char 227: */
1928 /*{*/ /* Char 228: */
1936 /*{*/ /* Char 229: */
1944 /*{*/ /* Char 230: */
1952 /*{*/ /* Char 231: */
1960 /*{*/ /* Char 232: */
1968 /*{*/ /* Char 233: */
1976 /*{*/ /* Char 234: */
1984 /*{*/ /* Char 235: */
1992 /*{*/ /* Char 236: */
2000 /*{*/ /* Char 237: */
2008 /*{*/ /* Char 238: */
2016 /*{*/ /* Char 239: */
2024 /*{*/ /* Char 240: */
2032 /*{*/ /* Char 241: */
2040 /*{*/ /* Char 242: */
2048 /*{*/ /* Char 243: */
2056 /*{*/ /* Char 244: */
2064 /*{*/ /* Char 245: */
2072 /*{*/ /* Char 246: */
2080 /*{*/ /* Char 247: */
2088 /*{*/ /* Char 248: */
2096 /*{*/ /* Char 249: */
2104 /*{*/ /* Char 250: */
2112 /*{*/ /* Char 251: */
2120 /*{*/ /* Char 252: */
2128 /*{*/ /* Char 253: */
2136 /*{*/ /* Char 254: */
2144 /*{*/ /* Char 255: */