fix: font loading.

This commit is contained in:
huaqo-games
2025-10-31 18:54:01 +01:00
parent 293dccac38
commit 297a835780
6 changed files with 2 additions and 2 deletions
@@ -1,6 +1,6 @@
info face="pixelFont-7-8x14-sproutLands" size=72 bold=0 italic=0 charset="" unicode=1 stretchH=100 smooth=1 aa=1 padding=1,1,1,1 spacing=1,1
common lineHeight=72 base=56 scaleW=434 scaleH=434 pages=1 packed=0
page id=0 file="pixelFont-7-8x14-sproutLands.png"
page id=0 file="font.png"
chars count=91
char id=32 x=0 y=0 width=0 height=0 xoffset=0 yoffset=0 xadvance=16 page=0 chnl=15
char id=33 x=57 y=55 width=10 height=58 xoffset=11 yoffset=-1 xadvance=28 page=0 chnl=15

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.
+1 -1
View File
@@ -33,7 +33,7 @@ void ConfigApp(App* app){
}
void InitApp(App *app){
InitFont(&app->font, "assets/pixelFont-7-8x14-sproutLands.fnt");
InitFont(&app->font, "assets/font.fnt");
InitLogo(&app->logo);
InitMenu(&app->menu);
InitGame(&app->game,&app->window);