Modified font

This commit is contained in:
2024-04-26 09:51:25 +02:00
parent 753c983c9d
commit 886966eff5
2 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -26,10 +26,10 @@ void setupScreen() {
} }
// TODO: Probably make the font bigger in a better way, but this works for now // TODO: Probably make the font bigger in a better way, but this works for now
void putcAt(char c, uint32_t x, uint32_t y) { void putcAt(unsigned char c, uint32_t x, uint32_t y) {
uint32_t offset = (WIDTH * y * 16 + x * 8) * 2; uint32_t offset = (WIDTH * y * 16 + x * 8) * 2;
char* bitmap = &font[(c-1) * 16]; char* bitmap = &font[((c % 128) - 1) * 16];
for (uint8_t i = 0; i < 32; i++) { // Rows (16*2 since we draw font 2x larger) for (uint8_t i = 0; i < 32; i++) { // Rows (16*2 since we draw font 2x larger)
char bitmapRow = bitmap[i/2]; // Idk if this should work, because i'm scared of division char bitmapRow = bitmap[i/2]; // Idk if this should work, because i'm scared of division
+13 -13
View File
@@ -1132,7 +1132,7 @@ db 00000000b,\
;; 'b' ;; 'b'
db 00000000b,\ db 00000000b,\
00000000b,\ 00000000b,\
00000000b,\ 10000000b,\
10000000b,\ 10000000b,\
10000000b,\ 10000000b,\
10111100b,\ 10111100b,\
@@ -1166,7 +1166,7 @@ db 00000000b,\
;; 'd' ;; 'd'
db 00000000b,\ db 00000000b,\
00000000b,\ 00000000b,\
00000000b,\ 00000010b,\
00000010b,\ 00000010b,\
00000010b,\ 00000010b,\
01111010b,\ 01111010b,\
@@ -1199,12 +1199,12 @@ db 00000000b,\
00000000b 00000000b
;; 'f' ;; 'f'
db 00000000b,\ db 00000000b,\
00000000b,\
00000000b,\ 00000000b,\
00001110b,\ 00001110b,\
00010000b,\ 00010000b,\
00010000b,\ 00010000b,\
00010000b,\ 00010000b,\
00010000b,\
11111110b,\ 11111110b,\
00010000b,\ 00010000b,\
00010000b,\ 00010000b,\
@@ -1234,7 +1234,7 @@ db 00000000b,\
;; 'h' ;; 'h'
db 00000000b,\ db 00000000b,\
00000000b,\ 00000000b,\
00000000b,\ 10000000b,\
10000000b,\ 10000000b,\
10000000b,\ 10000000b,\
10000000b,\ 10000000b,\
@@ -1285,7 +1285,7 @@ db 00000000b,\
;; 'k' ;; 'k'
db 00000000b,\ db 00000000b,\
00000000b,\ 00000000b,\
00000000b,\ 10000000b,\
10000000b,\ 10000000b,\
10000100b,\ 10000100b,\
10001000b,\ 10001000b,\
@@ -1301,7 +1301,6 @@ db 00000000b,\
00000000b 00000000b
;; 'l' ;; 'l'
db 00000000b,\ db 00000000b,\
00000000b,\
00000000b,\ 00000000b,\
00110000b,\ 00110000b,\
00010000b,\ 00010000b,\
@@ -1312,6 +1311,7 @@ db 00000000b,\
00010000b,\ 00010000b,\
00010000b,\ 00010000b,\
00010000b,\ 00010000b,\
00010000b,\
01111100b,\ 01111100b,\
00000000b,\ 00000000b,\
00000000b,\ 00000000b,\
@@ -1608,14 +1608,14 @@ db 00000000b,\
;; Tilde '~' ;; Tilde '~'
db 00000000b,\ db 00000000b,\
00000000b,\ 00000000b,\
01100010b,\ 00000000b,\
00000000b,\
00000000b,\
00000000b,\
01100000b,\
10010010b,\ 10010010b,\
10001100b,\ 10010010b,\
00000000b,\ 00001100b,\
00000000b,\
00000000b,\
00000000b,\
00000000b,\
00000000b,\ 00000000b,\
00000000b,\ 00000000b,\
00000000b,\ 00000000b,\