Files
Jander_Semester2/Semesterprojekt/src/main/resources/fonts
Jean-Luc Makiola 7ea11058a1 feat(io): bundle Cascadia Mono Nerd Font as the GUI font
Install the downloaded Cascadia Mono Nerd Font as src/main/resources/fonts/
game.ttf — the exact name SwingIO.loadFont() looks up on the classpath
(/fonts/game.ttf), so the GUI now uses a real monospaced Nerd Font (icon
glyphs included) instead of falling back to the logical monospaced font.
Include the font's SIL Open Font License as required for redistribution.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-02 09:27:25 +02:00
..

Bundled GUI font

Drop a TrueType font here named game.ttf to use it in the Swing GUI (SwingIO). It is loaded via Font.createFont and registered at runtime — no installation on the player's machine required.

  • A monospaced font is recommended (the UI assumes fixed width for frames).
  • A Nerd Font variant additionally provides icon glyphs.
  • Check the font's licence before committing the .ttf.

If no game.ttf is present, SwingIO falls back to the logical Font.MONOSPACED, so the game still runs.