From 1105174679285789844aa98d11306d445b2d73a3 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Sat, 13 Jun 2020 01:31:14 +0200 Subject: [PATCH] =?utf8?q?Updated=20font=20to=20get=20up=20and=20down=20ar?= =?utf8?q?row=20and=20"=C2=B0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- include/lib/font.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/include/lib/font.h b/include/lib/font.h index fcce7d7..5f780ec 100644 --- a/include/lib/font.h +++ b/include/lib/font.h @@ -21,6 +21,11 @@ /* * 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), /* ' */ \ @@ -142,7 +147,7 @@ ROW(0x3808080808380000), /* ] */ \ ROW(0x1028000000000000), /* ^ */ \ ROW(0x00000000007E0000), /* _ */ \ - ROW(0x1008000000000000), /* ` */ /* 0x60 */ \ + ROW(0x10387C1010100000), /* fleche haut */ /* 0x60 */ \ ROW(0x003C023E463A0000), /* a */ \ ROW(0x40407C42625C0000), /* b */ \ ROW(0x00001C20201C0000), /* c */ \ @@ -172,7 +177,8 @@ ROW(0x1C103030101C0000), /* { */ \ ROW(0x0808080808080800), /* | */ \ ROW(0x38080C0C08380000), /* } */ \ - ROW(0x000000324C000000), /* ~ */ + ROW(0x000000324C000000), /* ~ */ \ + ROW(0x001010107C381000), /* fleche bas */ /* 0x7F */ /* End of Table */ -- 2.43.0