ImGui doesn't respect font settings
Describe the bug
If you change your font settings via data/config/fonts.json, ImGui still uses what I assume is the default Terminus.ttf font.
My fonts.json file:
{ "typeface": [ "data/font/FantasqueSansMono-Bold.ttf", "data/font/Terminus.ttf", "data/font/unifont.ttf" ], "map_typeface": [ "data/font/Terminus.ttf", "data/font/unifont.ttf" ], "overmap_typeface": [ "data/font/Terminus.ttf", "data/font/unifont.ttf" ] }
Attach save file
Will provide one if needed, but I'm pretty sure it's unnecessary in this case.
Steps to reproduce
- Change your typeface font in data/config/fonts.json
- Launch the game, make sure old UI uses the defined font
- Open keybindings screen, note that default font is used instead of defined one
Expected behavior
I expected MyGui to use the typeface font defined in data/config/fonts.json
Screenshots
Comparison between old and new UI windows:
Versions and configuration
- OS: Windows
- OS Version: 10.0.22631.3447 (23H2)
- Game Version: cdda-experimental-2024-04-14-0520 ddc82e2 [64-bit]
- Graphics Version: Tiles
- Game Language: English [en]
- Mods loaded: [ Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], Portal Storms Ignore NPCs [personal_portal_storms], Slowdown Fungal Growth [no_fungal_growth], Stats Through Skills [StatsThroughSkills], Translate Complex Dialogue [translate_dialogue] ]
Additional context
debug.log No crash, but here's my debug.log file just in case.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.
Problems lays here where calling ensure_unifont_loaded() make sure the only unifont.ttf is used by ImGui