Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

ImGui doesn't respect font settings

Open DSeyka opened this issue 1 year ago • 1 comments

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

  1. Change your typeface font in data/config/fonts.json
  2. Launch the game, make sure old UI uses the defined font
  3. 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: image image

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.

DSeyka avatar Apr 14 '24 07:04 DSeyka

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.

github-actions[bot] avatar May 14 '24 08:05 github-actions[bot]

Problems lays here where calling ensure_unifont_loaded() make sure the only unifont.ttf is used by ImGui

alef avatar Aug 24 '24 09:08 alef