Introduce decimal point font (#314)

* Introduce decimal point font

* Add png of font

* Add getting a decimal point str from int

* Move font out of utils

* Clang format

* set Readme.md as main page in docs

* Add font generator

* kind of fix font

* Fix image oddities

* Added pip install pillow to build_ci_workflow

* Added ensurepip

* Update Docker/CI for font generation

* Fix CI

* Fix CI forreal

* Another CI fix

* Fix directory name for rom

* Adjust directory

* Dummy commit for test

* Revert "Dummy commit for test"

This reverts commit b607085c1322c824d2fdd800ab3c3700389ad3a6.

* dos2unix and update .gitignore

* Delete the generated font file

* Delete the generated font file

* remove dot from font

* Update include/font.h

Co-authored-by: MeirGavish <meir.gavish@gmail.com>

---------

Co-authored-by: MeirGavish <meir.gavish@gmail.com>
This commit is contained in:
Rickey
2025-12-18 18:19:01 -08:00
committed by GitHub
co-authored by MeirGavish
parent faa75a4eea
commit 628c0c992d
12 changed files with 258 additions and 27 deletions
+22
View File
@@ -0,0 +1,22 @@
#include "font.h"
#include "tonc.h"
static const char* s_font_point_lookup[] = {
XSTR(FP0_CHAR),
XSTR(FP1_CHAR),
XSTR(FP2_CHAR),
XSTR(FP3_CHAR),
XSTR(FP4_CHAR),
XSTR(FP5_CHAR),
XSTR(FP6_CHAR),
XSTR(FP7_CHAR),
XSTR(FP8_CHAR),
XSTR(FP9_CHAR),
};
const char* get_font_point_str(int val)
{
val = ABS(val) % 10;
return s_font_point_lookup[val];
}
+2 -1
View File
@@ -1,6 +1,7 @@
#include "affine_background.h"
#include "blind.h"
#include "card.h"
#include "font.h"
#include "game.h"
#include "graphic_utils.h"
#include "joker.h"
@@ -31,7 +32,7 @@ void init()
0,
CLR_WHITE,
TTE_BIT_UNPACK_OFFSET,
NULL,
&gbalatro_sys8Font,
NULL
);
tte_erase_screen();
+1
View File
@@ -1,5 +1,6 @@
#include "splash_screen.h"
#include "font.h"
#include "game.h"
#include "graphic_utils.h"
#include "maxmod.h"