Updated font to get up and down arrow and "°"
authorNathael Pajani <nathael.pajani@ed3l.fr>
Fri, 12 Jun 2020 23:31:14 +0000 (01:31 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:05 +0000 (17:03 +0100)
include/lib/font.h

index fcce7d7..5f780ec 100644 (file)
 /*
  * The font has been found on opengameart.org:
  * http://opengameart.org/content/8x8-ascii-bitmap-font-with-c-source
+ *
+ * I made a few modifications :
+ * replace 0x24 ($) by (°) orig : ROW(0x081E281C0A3C0800)
+ * replace 0x60 (`) by an up arrow. orig : ROW(0x1008000000000000)
+ * replace 0x7F (DEL) by a down arrow
  */
 
 #ifndef LIB_FONT_H
@@ -28,7 +33,7 @@
 
 #include "lib/stdint.h"
 
-#define NB_FONT_TILES  95
+#define NB_FONT_TILES  96
 #define FIRST_FONT_CHAR  0x20
 
 
@@ -82,7 +87,7 @@
        ROW(0x0808080800080000), /* ! */                   \
        ROW(0x2828000000000000), /* " */                   \
        ROW(0x00287C287C280000), /* # */                   \
-       ROW(0x081E281C0A3C0800), /* $ */                   \
+       ROW(0x1028281000000000), /* degree */              \
        ROW(0x6094681629060000), /* % */                   \
        ROW(0x1C20201926190000), /* & */                   \
        ROW(0x0808000000000000), /* ' */                   \
        ROW(0x3808080808380000), /* ] */                   \
        ROW(0x1028000000000000), /* ^ */                   \
        ROW(0x00000000007E0000), /* _ */                   \
-       ROW(0x1008000000000000), /* ` */ /* 0x60 */        \
+       ROW(0x10387C1010100000), /* fleche haut */ /* 0x60 */ \
        ROW(0x003C023E463A0000), /* a */                   \
        ROW(0x40407C42625C0000), /* b */                   \
        ROW(0x00001C20201C0000), /* c */                   \
        ROW(0x1C103030101C0000), /* { */                   \
        ROW(0x0808080808080800), /* | */                   \
        ROW(0x38080C0C08380000), /* } */                   \
-       ROW(0x000000324C000000), /* ~ */
+       ROW(0x000000324C000000), /* ~ */                   \
+       ROW(0x001010107C381000), /* fleche bas */ /* 0x7F */
 /* End of Table */