1 /* Hand composed "Minuscule" 4x6 font for code page 437, with binary data
2 * generated using Perl stub.
4 * Use 'perl -x mini_4x6.c < mini_4x6.c > new_version.c' to regenerate
7 * Created by Kenneth Albanowski.
8 * No rights reserved, released to the public domain.
17 s{((0x)?[0-9a-fA-F]+)(.*\[([\*\ ]{4})\])}{
19 ($num,$pat,$bits) = ($1,$3,$4);
21 $bits =~ s/([^\s0])|(.)/ defined($1) + 0 /ge;
23 $num = ord(pack("B8", $bits));
25 $num = sprintf("0x%.2x", $num);
27 #print "$num,$pat,$bits\n";
35 /* Note: binary data consists of one byte for each row of each character top
36 to bottom, character 0 to character 255, six bytes per character. Each
37 byte contains the same four character bits in both nybbles.
38 MSBit to LSBit = left to right.
41 #ifndef _VIDEO_FONT_DATA_
42 #define _VIDEO_FONT_DATA_
44 #define VIDEO_FONT_CHARS 256
45 #define VIDEO_FONT_WIDTH 4
46 #define VIDEO_FONT_HEIGHT 6
47 #define VIDEO_FONT_SIZE (VIDEO_FONT_CHARS * VIDEO_FONT_HEIGHT)
49 static unsigned char video_fontdata[VIDEO_FONT_SIZE] = {
519 /*{*/ /* Char 52: '4' */
527 /*{*/ /* Char 53: '5' */
535 /*{*/ /* Char 54: '6' */
543 /*{*/ /* Char 55: '7' */
551 /*{*/ /* Char 56: '8' */
559 /*{*/ /* Char 57: '9' */
567 /*{*/ /* Char 58: ':' */
575 /*{*/ /* Char 59: ';' */
583 /*{*/ /* Char 60: '<' */
591 /*{*/ /* Char 61: '=' */
599 /*{*/ /* Char 62: '>' */
607 /*{*/ /* Char 63: '?' */
615 /*{*/ /* Char 64: '@' */
623 /*{*/ /* Char 65: 'A' */
631 /*{*/ /* Char 66: 'B' */
639 /*{*/ /* Char 67: 'C' */
647 /*{*/ /* Char 68: 'D' */
655 /*{*/ /* Char 69: 'E' */
663 /*{*/ /* Char 70: 'F' */
671 /*{*/ /* Char 71: 'G' */
679 /*{*/ /* Char 72: 'H' */
687 /*{*/ /* Char 73: 'I' */
695 /*{*/ /* Char 74: 'J' */
703 /*{*/ /* Char 75: 'K' */
711 /*{*/ /* Char 76: 'L' */
719 /*{*/ /* Char 77: 'M' */
727 /*{*/ /* Char 78: 'N' */
735 /*{*/ /* Char 79: 'O' */
743 /*{*/ /* Char 80: 'P' */
751 /*{*/ /* Char 81: 'Q' */
759 /*{*/ /* Char 82: 'R' */
767 /*{*/ /* Char 83: 'S' */
775 /*{*/ /* Char 84: 'T' */
783 /*{*/ /* Char 85: 'U' */
791 /*{*/ /* Char 86: 'V' */
799 /*{*/ /* Char 87: 'W' */
807 /*{*/ /* Char 88: 'X' */
815 /*{*/ /* Char 89: 'Y' */
823 /*{*/ /* Char 90: 'Z' */
831 /*{*/ /* Char 91: '[' */
839 /*{*/ /* Char 92: '\' */
847 /*{*/ /* Char 93: ']' */
855 /*{*/ /* Char 94: '^' */
863 /*{*/ /* Char 95: '_' */
871 /*{*/ /* Char 96: '`' */
879 /*{*/ /* Char 97: 'a' */
887 /*{*/ /* Char 98: 'b' */
895 /*{*/ /* Char 99: 'c' */
903 /*{*/ /* Char 100: 'd' */
911 /*{*/ /* Char 101: 'e' */
919 /*{*/ /* Char 102: 'f' */
927 /*{*/ /* Char 103: 'g' */
935 /*{*/ /* Char 104: 'h' */
943 /*{*/ /* Char 105: 'i' */
951 /*{*/ /* Char 106: 'j' */
959 /*{*/ /* Char 107: 'k' */
967 /*{*/ /* Char 108: 'l' */
975 /*{*/ /* Char 109: 'm' */
983 /*{*/ /* Char 110: 'n' */
991 /*{*/ /* Char 111: 'o' */
999 /*{*/ /* Char 112: 'p' */
1007 /*{*/ /* Char 113: 'q' */
1015 /*{*/ /* Char 114: 'r' */
1023 /*{*/ /* Char 115: 's' */
1031 /*{*/ /* Char 116: 't' */
1039 /*{*/ /* Char 117: 'u' */
1047 /*{*/ /* Char 118: 'v' */
1055 /*{*/ /* Char 119: 'w' */
1063 /*{*/ /* Char 120: 'x' */
1071 /*{*/ /* Char 121: 'y' */
1079 /*{*/ /* Char 122: 'z' */
1087 /*{*/ /* Char 123: '{' */
1095 /*{*/ /* Char 124: '|' */
1103 /*{*/ /* Char 125: '}' */
1111 /*{*/ /* Char 126: '~' */
1119 /*{*/ /* Char 127: '
\7f' */
1127 /*{*/ /* Char 128: */
1135 /*{*/ /* Char 129: */
1143 /*{*/ /* Char 130: */
1151 /*{*/ /* Char 131: */
1159 /*{*/ /* Char 132: */
1167 /*{*/ /* Char 133: */
1175 /*{*/ /* Char 134: */
1183 /*{*/ /* Char 135: */
1191 /*{*/ /* Char 136: */
1199 /*{*/ /* Char 137: */
1207 /*{*/ /* Char 138: */
1215 /*{*/ /* Char 139: */
1223 /*{*/ /* Char 140: */
1231 /*{*/ /* Char 141: */
1239 /*{*/ /* Char 142: */
1247 /*{*/ /* Char 143: */
1255 /*{*/ /* Char 144: */
1263 /*{*/ /* Char 145: */
1271 /*{*/ /* Char 146: */
1279 /*{*/ /* Char 147: */
1287 /*{*/ /* Char 148: */
1295 /*{*/ /* Char 149: */
1303 /*{*/ /* Char 150: */
1311 /*{*/ /* Char 151: */
1319 /*{*/ /* Char 152: */
1327 /*{*/ /* Char 153: */
1335 /*{*/ /* Char 154: */
1343 /*{*/ /* Char 155: */
1351 /*{*/ /* Char 156: */
1359 /*{*/ /* Char 157: */
1367 /*{*/ /* Char 158: */
1375 /*{*/ /* Char 159: */
1383 /*{*/ /* Char 160: */
1391 /*{*/ /* Char 161: */
1399 /*{*/ /* Char 162: */
1407 /*{*/ /* Char 163: */
1415 /*{*/ /* Char 164: */
1423 /*{*/ /* Char 165: */
1431 /*{*/ /* Char 166: */
1439 /*{*/ /* Char 167: */
1447 /*{*/ /* Char 168: */
1455 /*{*/ /* Char 169: */
1463 /*{*/ /* Char 170: */
1471 /*{*/ /* Char 171: */
1479 /*{*/ /* Char 172: */
1487 /*{*/ /* Char 173: */
1495 /*{*/ /* Char 174: */
1503 /*{*/ /* Char 175: */
1511 /*{*/ /* Char 176: */
1519 /*{*/ /* Char 177: */
1527 /*{*/ /* Char 178: */
1535 /*{*/ /* Char 179: */
1543 /*{*/ /* Char 180: */
1551 /*{*/ /* Char 181: */
1559 /*{*/ /* Char 182: */
1567 /*{*/ /* Char 183: */
1575 /*{*/ /* Char 184: */
1583 /*{*/ /* Char 185: */
1591 /*{*/ /* Char 186: */
1599 /*{*/ /* Char 187: */
1607 /*{*/ /* Char 188: */
1615 /*{*/ /* Char 189: */
1623 /*{*/ /* Char 190: */
1631 /*{*/ /* Char 191: */
1639 /*{*/ /* Char 192: */
1647 /*{*/ /* Char 193: */
1655 /*{*/ /* Char 194: */
1663 /*{*/ /* Char 195: */
1671 /*{*/ /* Char 196: */
1679 /*{*/ /* Char 197: */
1687 /*{*/ /* Char 198: */
1695 /*{*/ /* Char 199: */
1703 /*{*/ /* Char 200: */
1711 /*{*/ /* Char 201: */
1719 /*{*/ /* Char 202: */
1727 /*{*/ /* Char 203: */
1735 /*{*/ /* Char 204: */
1743 /*{*/ /* Char 205: */
1751 /*{*/ /* Char 206: */
1759 /*{*/ /* Char 207: */
1767 /*{*/ /* Char 208: */
1775 /*{*/ /* Char 209: */
1783 /*{*/ /* Char 210: */
1791 /*{*/ /* Char 211: */
1799 /*{*/ /* Char 212: */
1807 /*{*/ /* Char 213: */
1815 /*{*/ /* Char 214: */
1823 /*{*/ /* Char 215: */
1831 /*{*/ /* Char 216: */
1839 /*{*/ /* Char 217: */
1847 /*{*/ /* Char 218: */
1855 /*{*/ /* Char 219: */
1863 /*{*/ /* Char 220: */
1871 /*{*/ /* Char 221: */
1879 /*{*/ /* Char 222: */
1887 /*{*/ /* Char 223: */
1895 /*{*/ /* Char 224: */
1903 /*{*/ /* Char 225: */
1911 /*{*/ /* Char 226: */
1919 /*{*/ /* Char 227: */
1927 /*{*/ /* Char 228: */
1935 /*{*/ /* Char 229: */
1943 /*{*/ /* Char 230: */
1951 /*{*/ /* Char 231: */
1959 /*{*/ /* Char 232: */
1967 /*{*/ /* Char 233: */
1975 /*{*/ /* Char 234: */
1983 /*{*/ /* Char 235: */
1991 /*{*/ /* Char 236: */
1999 /*{*/ /* Char 237: */
2007 /*{*/ /* Char 238: */
2015 /*{*/ /* Char 239: */
2023 /*{*/ /* Char 240: */
2031 /*{*/ /* Char 241: */
2039 /*{*/ /* Char 242: */
2047 /*{*/ /* Char 243: */
2055 /*{*/ /* Char 244: */
2063 /*{*/ /* Char 245: */
2071 /*{*/ /* Char 246: */
2079 /*{*/ /* Char 247: */
2087 /*{*/ /* Char 248: */
2095 /*{*/ /* Char 249: */
2103 /*{*/ /* Char 250: */
2111 /*{*/ /* Char 251: */
2119 /*{*/ /* Char 252: */
2127 /*{*/ /* Char 253: */
2135 /*{*/ /* Char 254: */
2143 /*{*/ /* Char 255: */