From eeac6db44137979a0599341ecd705fbb7e0efa80 Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Tue, 27 Jul 2021 14:22:34 -0700 Subject: [PATCH] Update 8x8 font used by visualizers Added 'G' through 'Z'. Rounded 'D' a bit. --- CommonUtil/Font8x8.cs | 190 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 185 insertions(+), 5 deletions(-) diff --git a/CommonUtil/Font8x8.cs b/CommonUtil/Font8x8.cs index 6da283f..a777259 100644 --- a/CommonUtil/Font8x8.cs +++ b/CommonUtil/Font8x8.cs @@ -53,7 +53,7 @@ namespace CommonUtil { return 1; } else if (ch >= '0' && ch <= '9') { return ch - '0' + 2; - } else if (ch >= 'A' && ch <= 'F') { + } else if (ch >= 'A' && ch <= 'Z') { return ch - 'A' + 12; } else { return 0; @@ -231,13 +231,13 @@ namespace CommonUtil { ".#####.." + "........", // 'D' - "######.." + + "#####..." + + "#....#.." + "#.....#." + "#.....#." + "#.....#." + - "#.....#." + - "#.....#." + - "######.." + + "#....#.." + + "#####..." + "........", // 'E' "#######." + @@ -257,6 +257,186 @@ namespace CommonUtil { "#......." + "#......." + "........", + // 'G' + ".#####.." + + "#.....#." + + "#......." + + "#......." + + "#...###." + + "#.....#." + + ".######." + + "........", + // 'H' + "#.....#." + + "#.....#." + + "#.....#." + + "#######." + + "#.....#." + + "#.....#." + + "#.....#." + + "........", + // 'I' + "..###..." + + "...#...." + + "...#...." + + "...#...." + + "...#...." + + "...#...." + + "..###..." + + "........", + // 'J' + "......#." + + "......#." + + "......#." + + "......#." + + "#.....#." + + "#.....#." + + ".#####.." + + "........", + // 'K' + "#.....#." + + "#...##.." + + "#.##...." + + "##......" + + "#.##...." + + "#...##.." + + "#.....#." + + "........", + // 'L' + "#......." + + "#......." + + "#......." + + "#......." + + "#......." + + "#......." + + "#######." + + "........", + // 'M' + "#.....#." + + "##...##." + + "#.#.#.#." + + "#..#..#." + + "#.....#." + + "#.....#." + + "#.....#." + + "........", + // 'N' + "#.....#." + + "##....#." + + "#.#...#." + + "#..#..#." + + "#...#.#." + + "#....##." + + "#.....#." + + "........", + // 'O' + ".#####.." + + "#.....#." + + "#.....#." + + "#.....#." + + "#.....#." + + "#.....#." + + ".#####.." + + "........", + // 'P' + "######.." + + "#.....#." + + "#.....#." + + "######.." + + "#......." + + "#......." + + "#......." + + "........", + // 'Q' + ".#####.." + + "#.....#." + + "#.....#." + + "#.....#." + + "#...#.#." + + "#....#.." + + ".####.#." + + "........", + // 'R' + "######.." + + "#.....#." + + "#.....#." + + "######.." + + "#...#..." + + "#....#.." + + "#.....#." + + "........", + // 'S' + ".#####.." + + "#.....#." + + "#......." + + ".#####.." + + "......#." + + "#.....#." + + ".#####.." + + "........", + // 'T' + "#######." + + "...#...." + + "...#...." + + "...#...." + + "...#...." + + "...#...." + + "...#...." + + "........", + // 'U' + "#.....#." + + "#.....#." + + "#.....#." + + "#.....#." + + "#.....#." + + "#.....#." + + ".#####.." + + "........", + // 'V' + "#.....#." + + "#.....#." + + "#.....#." + + "#.....#." + + ".#...#.." + + "..#.#..." + + "...#...." + + "........", + // 'W' + "#.....#." + + "#.....#." + + "#.....#." + + "#..#..#." + + "#.#.#.#." + + "##...##." + + "#.....#." + + "........", + // 'X' + "#.....#." + + ".#...#.." + + "..#.#..." + + "...#...." + + "..#.#..." + + ".#...#.." + + "#.....#." + + "........", + // 'Y' + "#.....#." + + ".#...#.." + + "..#.#..." + + "...#...." + + "...#...." + + "...#...." + + "...#...." + + "........", + // 'Z' + "#######." + + ".....#.." + + "....#..." + + "...#...." + + "..#....." + + ".#......" + + "#######." + + "........", }; } }