dina font

This commit is contained in:
KikooDX 2021-12-18 14:40:24 +01:00
parent 87bfda98ab
commit 74451c9350
6 changed files with 15 additions and 1 deletions

View File

@ -24,6 +24,7 @@ set(ASSETS
res/test.kble
res/burn.kble
res/bounce.kble
res/fonts/dina.png
)
set(FLAGS -std=c99 -Os -Wall -Wextra -Wshadow)

4
README Normal file
View File

@ -0,0 +1,4 @@
Font
----
Dina @ https://www.dcmembers.com/jibsen/download/61/

BIN
res/fonts/dina.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,6 @@
dina.png:
type: font
charset: print
grid.size: 8x14
proportional: true
name: font_dina

View File

@ -110,7 +110,7 @@ level_draw(void)
}
/* level name */
dprint_opt(DWIDTH - 2, DHEIGHT - 2, C_WHITE, C_BLACK, DTEXT_RIGHT,
dprint_opt(DWIDTH - 4, DHEIGHT - 2, C_BLACK, C_NONE, DTEXT_RIGHT,
DTEXT_BOTTOM, "%s", levels[level.id].name);
}

View File

@ -44,6 +44,9 @@ main(void)
static void
init(void)
{
extern font_t font_dina;
dfont(&font_dina);
timer = timer_configure(TIMER_ANY, 1000000 / TARGET_FPS,
GINT_CALL(timer_callback, &has_ticked));
timer_start(timer);