From 2fada9be20321846cdfe522d2c3692b832b50909 Mon Sep 17 00:00:00 2001 From: Marek Maskarinec Date: Thu, 27 Jan 2022 21:55:48 +0100 Subject: [PATCH] initial commit --- conv.um | 90 ++++++++ font.txt | 643 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ minimal.h | 96 ++++++++ normal.h | 96 ++++++++ readme | 10 + 5 files changed, 935 insertions(+) create mode 100644 conv.um create mode 100644 font.txt create mode 100644 minimal.h create mode 100644 normal.h create mode 100644 readme diff --git a/conv.um b/conv.um new file mode 100644 index 0000000..6067ae4 --- /dev/null +++ b/conv.um @@ -0,0 +1,90 @@ + +import ( + "std.um" +) + +fn getc(): char { + out := ' ' + if scanf("%c", &out) == 0 { + return char(0) + } + return out +} + +fn parse*(): [][]int { + out := make([][]int, 128) + + for true { + c := int(getc()) + if c == 0 || c == 32 { break } + out[c] = make([]int, 25) + getc() + i := 0 + for i < 25 { + c2 := getc() + if c2 == '\n' { continue } + if c2 == '#' { out[c][i] = 1 } + i++ + } + getc() + if getc() == char(0) { + break + } + if c == int('\n') { + out[c] = []int{} + } + } + + out[0x20] = make([]int, 25) + return out +} + +fn main() { + if std.argc() != 2 { + printf("conv.um [normal|minimal]\n") + return + } + + mode := std.argv(1) + + data := parse() + printf("#ifndef PIXELFONT_H\n#define PIXELFONT_H\n") + + if mode == "normal" { + printf("static char pixelfont[128][25] = {\n") + for i,l in data { + if len(l) == 0 { continue } + s := str(char(i)) + if char(i) == '\'' || char(i) == '\\' { + s = "\\" + s + } + + printf("\t[\'%s\'] = { ", s) + for j,b in l { + printf("%d,", b) + } + printf(" },\n") + } + } else if mode == "minimal" { + printf("static int pixelfont[] = {\n") + for i,l in data { + if len(l) == 0 { continue } + s := str(char(i)) + if char(i) == '\'' || char(i) == '\\' { + s = "\\" + s + } + printf("\t[\'%s\'] = ", s) + + n := 0 + for i:=24; i >= 0; i-- { + n += l[i] + n = n << 1 + } + printf("%d,\n", n) + } + } else { + printf("invalid mode. modes are: normal and minimal\n") + return + } + printf("};\n#endif\n") +} diff --git a/font.txt b/font.txt new file mode 100644 index 0000000..7b7815a --- /dev/null +++ b/font.txt @@ -0,0 +1,643 @@ +A +.###. +#...# +##### +#...# +#...# + +B +####. +#...# +####. +#...# +####. + +C +.#### +#.... +#.... +#.... +.#### + +D +####. +#...# +#...# +#...# +####. + +E +##### +#.... +##### +#.... +##### + +F +##### +#.... +####. +#.... +#.... + +G +##### +#.... +#..## +#...# +##### + +H +#...# +#...# +##### +#...# +#...# + +I +.###. +..#.. +..#.. +..#.. +.###. + +J +..### +...#. +...#. +#..#. +.##.. + +K +#..#. +#.#.. +##... +#.#.. +#..#. + +L +#.... +#.... +#.... +#.... +##### + +M +#...# +##.## +#.#.# +#...# +#...# + +N +#...# +##..# +#.#.# +#..## +#...# + +O +.###. +#...# +#...# +#...# +.###. + +P +####. +#...# +####. +#.... +#.... + +Q +.###. +#...# +#...# +#..#. +.##.# + +R +####. +#...# +####. +#.#.. +#..#. + +S +.#### +#.... +.###. +....# +####. + +T +##### +..#.. +..#.. +..#.. +..#.. + +U +#...# +#...# +#...# +#...# +.###. + +V +#...# +#...# +#...# +.#.#. +..#.. + +W +#...# +#...# +#...# +#.#.# +.###. + +X +#...# +.#.#. +..#.. +.#.#. +#...# + +Y +#...# +.#.#. +..#.. +..#.. +..#.. + +Z +##### +...#. +..#.. +.#... +##### + +0 +##### +#...# +#.#.# +#...# +##### + +1 +..#.. +.##.. +..#.. +..#.. +.###. + +2 +.##.. +#..#. +..#.. +.#... +####. + +3 +.##.. +#..#. +..#.. +#..#. +.##.. + +4 +...#. +..#.. +.#... +####. +..#.. + +5 +##### +#.... +####. +....# +####. + +6 +.###. +#.... +####. +#...# +.###. + +7 +##### +...#. +..#.. +.#... +#.... + +8 +.###. +#...# +.###. +#...# +.###. + +9 +.###. +#...# +.#### +....# +.###. + +a +..... +.##.. +#..#. +#..#. +.##.# + +b +.#... +.###. +.#..# +.#..# +..##. + +c +..... +..##. +.#... +.#... +..##. + +d +...#. +.###. +#..#. +#..#. +.##.. + +e +..... +.##.. +####. +#.... +.##.. + +f +..##. +.#... +.##.. +.#... +.#... + +g +..##. +.#.#. +..##. +...#. +..#.. + +h +.#... +.#... +.###. +.#..# +.#..# + +i +..... +..#.. +..... +..#.. +..#.. + +j +..#.. +..... +..#.. +..#.. +.#... + +k +..... +.#... +.#.#. +.##.. +.#.#. + +l +..... +.#... +.#... +.#... +..#.. + +m +..... +##.#. +#.#.# +#...# +#...# + +n +..... +###.. +#..#. +#..#. +#..#. + +o +..... +..##. +.#..# +.#..# +..##. + +p +..... +.##.. +.#.#. +.##.. +.#... + +q +..... +..##. +.#.#. +..##. +...#. + +r +..... +..... +..##. +.#... +.#... + +s +..... +.###. +.##.. +..##. +.###. + +t +..... +..#.. +.###. +..#.. +..##. + +u +..... +..... +.#.#. +.#.#. +.###. + +v +..... +..... +.#.#. +.#.#. +..#.. + +w +..... +..... +#...# +#.#.# +.###. + +x +..... +..... +.#.#. +..#.. +.#.#. + +y +..... +.#.#. +.#.#. +..#.. +.#... + +z +..... +.###. +..##. +.##.. +.###. + +! +..#.. +..#.. +..#.. +..... +..#.. + +" +.#.#. +.#.#. +..... +..... +..... + +# +.#.#. +##### +.#.#. +##### +.#.#. + +$ +.#### +#.#.. +.###. +..#.# +####. + +% +##..# +##.#. +..#.. +.#.## +#..## + +& +..##. +.#... +..#.. +.#.#. +.##.# + +\ +..#.. +..#.. +..... +..... +..... + +( +...#. +..#.. +..#.. +..#.. +...#. + +) +.#... +..#.. +..#.. +..#.. +.#... + +* +.#.#. +..#.. +.#.#. +..... +..... + ++ +..... +..#.. +.###. +..#.. +..... + +, +..... +..... +..... +..#.. +.#... + +- +..... +..... +.###. +..... +..... + +. +..... +..... +..... +..... +.#... + +/ +....# +...#. +..#.. +.#... +#.... + +: +..... +..#.. +..... +..#.. +..... + +; +..... +..#.. +..... +..#.. +.#... + +< +...## +.##.. +#.... +.##.. +...## + += +..... +##### +..... +##### +..... + +> +##... +..##. +....# +..##. +##... + +? +..#.. +...#. +..#.. +..... +..#.. + +@ +.###. +#.#.# +#.##. +#.... +.##.. + +[ +..##. +..#.. +..#.. +..#.. +..##. + +\ +#.... +.#... +..#.. +...#. +....# + +] +.##.. +..#.. +..#.. +..#.. +.##.. + +^ +..#.. +.#.#. +..... +..... +..... + +_ +..... +..... +..... +..... +##### + +` +.#... +..#.. +..... +..... +..... + +~ +..... +.#... +#.#.# +...#. +..... + + +..... +..... +..... +..... +..... diff --git a/minimal.h b/minimal.h new file mode 100644 index 0000000..3986127 --- /dev/null +++ b/minimal.h @@ -0,0 +1,96 @@ +#ifndef PIXELFONT_H +#define PIXELFONT_H +static int pixelfont[] = { + [' '] = 0, + ['!'] = 8397064, + ['"'] = 660, + ['#'] = 23025620, + ['$'] = 32797052, + ['%'] = 54141670, + ['&'] = 46801048, + ['('] = 17047824, + [')'] = 4464900, + ['*'] = 20756, + ['+'] = 291072, + [','] = 4456448, + ['-'] = 28672, + ['.'] = 4194304, + ['/'] = 2236960, + ['0'] = 66169982, + ['1'] = 29630856, + ['2'] = 31597132, + ['3'] = 13181516, + ['4'] = 9376016, + ['5'] = 32536702, + ['6'] = 30505052, + ['7'] = 2236990, + ['8'] = 30504028, + ['9'] = 30471260, + [':'] = 262400, + [';'] = 4456704, + ['<'] = 50727344, + ['='] = 2033600, + ['>'] = 7111430, + ['?'] = 8397320, + ['@'] = 12676444, + ['A'] = 36830300, + ['B'] = 32603230, + ['C'] = 62982268, + ['D'] = 32607326, + ['E'] = 65140862, + ['F'] = 2193534, + ['G'] = 66177150, + ['H'] = 36830306, + ['I'] = 29630748, + ['J'] = 13189688, + ['K'] = 19208530, + ['L'] = 65079362, + ['M'] = 36810466, + ['N'] = 37334242, + ['O'] = 30510172, + ['P'] = 2194526, + ['Q'] = 46763100, + ['R'] = 19233886, + ['S'] = 32534652, + ['T'] = 8659262, + ['U'] = 30510178, + ['V'] = 9079906, + ['W'] = 30772322, + ['X'] = 36315810, + ['Y'] = 8659618, + ['Z'] = 65151550, + ['['] = 25436440, + ['\\'] = 34087042, + [']'] = 12853516, + ['^'] = 648, + ['_'] = 65011712, + ['`'] = 260, + ['a'] = 46745984, + ['b'] = 26383236, + ['c'] = 25301760, + ['d'] = 13192080, + ['e'] = 12679552, + ['f'] = 4337816, + ['g'] = 8938136, + ['h'] = 38957188, + ['i'] = 8651008, + ['j'] = 4464648, + ['k'] = 21385344, + ['l'] = 8523904, + ['m'] = 36809408, + ['n'] = 19483072, + ['o'] = 26383104, + ['p'] = 4608384, + ['q'] = 17584896, + ['r'] = 4349952, + ['s'] = 30159744, + ['t'] = 25456896, + ['u'] = 30035968, + ['v'] = 9064448, + ['w'] = 30771200, + ['x'] = 21254144, + ['y'] = 4477568, + ['z'] = 29778816, + ['~'] = 567424, +}; +#endif diff --git a/normal.h b/normal.h new file mode 100644 index 0000000..a198af9 --- /dev/null +++ b/normal.h @@ -0,0 +1,96 @@ +#ifndef PIXELFONT_H +#define PIXELFONT_H +static char pixelfont[128][25] = { + [' '] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, }, + ['!'] = { 0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0, }, + ['"'] = { 0,1,0,1,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, }, + ['#'] = { 0,1,0,1,0,1,1,1,1,1,0,1,0,1,0,1,1,1,1,1,0,1,0,1,0, }, + ['$'] = { 0,1,1,1,1,1,0,1,0,0,0,1,1,1,0,0,0,1,0,1,1,1,1,1,0, }, + ['%'] = { 1,1,0,0,1,1,1,0,1,0,0,0,1,0,0,0,1,0,1,1,1,0,0,1,1, }, + ['&'] = { 0,0,1,1,0,0,1,0,0,0,0,0,1,0,0,0,1,0,1,0,0,1,1,0,1, }, + ['('] = { 0,0,0,1,0,0,0,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0, }, + [')'] = { 0,1,0,0,0,0,0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,0,0,0,1,0,0,0,0,0,1,0,0, }, + ['m'] = { 0,0,0,0,0,1,1,0,1,0,1,0,1,0,1,1,0,0,0,1,1,0,0,0,1, }, + ['n'] = { 0,0,0,0,0,1,1,1,0,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0, }, + ['o'] = { 0,0,0,0,0,0,0,1,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,1,0, }, + ['p'] = { 0,0,0,0,0,0,1,1,0,0,0,1,0,1,0,0,1,1,0,0,0,1,0,0,0, }, + ['q'] = { 0,0,0,0,0,0,0,1,1,0,0,1,0,1,0,0,0,1,1,0,0,0,0,1,0, }, + ['r'] = { 0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,1,0,0,0, }, + ['s'] = { 0,0,0,0,0,0,1,1,1,0,0,1,1,0,0,0,0,1,1,0,0,1,1,1,0, }, + ['t'] = { 0,0,0,0,0,0,0,1,0,0,0,1,1,1,0,0,0,1,0,0,0,0,1,1,0, }, + ['u'] = { 0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,1,0,1,0,0,1,1,1,0, }, + ['v'] = { 0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,1,0,1,0,0,0,1,0,0, }, + ['w'] = { 0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,1,0,1,0,1,0,1,1,1,0, }, + ['x'] = { 0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,1,0, }, + ['y'] = { 0,0,0,0,0,0,1,0,1,0,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0, }, + ['z'] = { 0,0,0,0,0,0,1,1,1,0,0,0,1,1,0,0,1,1,0,0,0,1,1,1,0, }, + ['~'] = { 0,0,0,0,0,0,1,0,0,0,1,0,1,0,1,0,0,0,1,0,0,0,0,0,0, }, +}; +#endif diff --git a/readme b/readme new file mode 100644 index 0000000..08168a2 --- /dev/null +++ b/readme @@ -0,0 +1,10 @@ +A 5x5 font mean for embedding in a c header. It is available in normal mode, +where each character is an array of 25 chars (1 or 0), or in a minimal mode, +where each character is represented as a 32-bit number. + +The font itself is defined in font.txt. If you make changes to it, you can +re-generate the headers using conv.um. The parse function is exported, so you +can make your own translation targets. + +I'm happy to take contributions, whether it improves the conversion script, or +improves some of the glyphs (some of them aren't that good). -- 2.45.2