diff --git a/assets/fonts/Exo2.ttf b/assets/fonts/Exo2.ttf new file mode 100644 index 0000000..2170b15 Binary files /dev/null and b/assets/fonts/Exo2.ttf differ diff --git a/assets/fonts/Orbitron.ttf b/assets/fonts/Orbitron.ttf new file mode 100644 index 0000000..7d0d5e0 Binary files /dev/null and b/assets/fonts/Orbitron.ttf differ diff --git a/settings.ini b/settings.ini index a2bcdbd..200523e 100644 --- a/settings.ini +++ b/settings.ini @@ -6,7 +6,7 @@ Fullscreen=1 [Audio] Music=1 -Sound=0 +Sound=1 [Gameplay] SmoothScroll=1 diff --git a/src/main.cpp b/src/main.cpp index 51b91ff..57091f2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -580,12 +580,13 @@ int main(int, char **) SDL_GetError()); } - FontAtlas font; - font.init("FreeSans.ttf", 24); - - // Load PressStart2P font for loading screen and retro UI elements + // Primary UI font (Orbitron) used for major UI text: buttons, loading, HUD FontAtlas pixelFont; - pixelFont.init("assets/fonts/PressStart2P-Regular.ttf", 16); + pixelFont.init("assets/fonts/Orbitron.ttf", 22); + + // Secondary font (Exo2) used for longer descriptions, settings, credits + FontAtlas font; + font.init("assets/fonts/Exo2.ttf", 20); ScoreManager scores; std::atomic scoresLoadComplete{false}; diff --git a/src/states/OptionsState.cpp b/src/states/OptionsState.cpp index 0a4fd35..95a2799 100644 --- a/src/states/OptionsState.cpp +++ b/src/states/OptionsState.cpp @@ -113,7 +113,8 @@ void OptionsState::render(SDL_Renderer* renderer, float logicalScale, SDL_Rect l UIRenderer::drawSciFiPanel(renderer, panel); - FontAtlas* retroFont = ctx.pixelFont ? ctx.pixelFont : ctx.font; + // For options/settings we prefer the secondary (Exo2) font for longer descriptions. + FontAtlas* retroFont = ctx.font ? ctx.font : ctx.pixelFont; if (!logoTexture && retroFont) { retroFont->draw(renderer, panel.x + 24.0f, panel.y + 24.0f, "OPTIONS", 2.0f, {255, 230, 120, 255});