imgui console: use JetBrains (redistributable font); use font size, not pixel scaling

This commit is contained in:
John McCardle 2026-01-20 21:59:13 -05:00
commit 0207595db0
3 changed files with 97 additions and 13 deletions

View file

@ -83,6 +83,10 @@ GameEngine::GameEngine(const McRogueFaceConfig& cfg)
// Initialize ImGui for the window
if (ImGui::SFML::Init(*window)) {
imguiInitialized = true;
// Register settings handler before .ini is loaded (happens on first frame)
ImGuiConsole::registerSettingsHandler();
// Load JetBrains Mono for crisp console text (will be overridden by .ini if present)
ImGuiConsole::reloadFont(16.0f);
}
}