* 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>
23 lines
393 B
C
23 lines
393 B
C
#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];
|
|
}
|