dina font
This commit is contained in:
parent
87bfda98ab
commit
74451c9350
|
@ -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)
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Font
|
||||
----
|
||||
|
||||
Dina @ https://www.dcmembers.com/jibsen/download/61/
|
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
|
@ -0,0 +1,6 @@
|
|||
dina.png:
|
||||
type: font
|
||||
charset: print
|
||||
grid.size: 8x14
|
||||
proportional: true
|
||||
name: font_dina
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue