flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.35k stars 281 forks source link

Steam games not using the set `font_file=` #1201

Closed Kagukara closed 8 months ago

Kagukara commented 8 months ago

Describe the bug Games launched via Steam (including non-steam games) aren't using the set font in font_file= of the config file.

I have tested this with GW2, which I can launch via both Steam and Bottles. Via Steam it doesn't use the set font, but via Bottles it does.

Adding GW2 via non-steam game also doesn't use the set font.

List relevant hardware/software information

To Reproduce Steps to reproduce the behavior:

  1. Add or make sure mangohud %command% is set in the 'Launch Options' of a Steam game.
  2. Add or make sure a custom font is set for font_file= in your MangoHud.conf file.
  3. Launch the Steam game
  4. Check MangoHud
  5. Close game
  6. Launch a game not using Steam with mangohud %command% set in whatever you're using to launch the game.
  7. Check MangoHud
  8. Close game

Expected behavior I expect the font I set in font_file= of my config file to work for all games no matter the launcher.

Screenshots Guild Wars 2 MangoHud via Steam capture_2023-12-26_02-13-39

Guild Wars 2 MangoHud via Bottles capture_2023-12-26_02-17-03

flightlessmango commented 8 months ago

This is likely because the steam runtime container does not have access to the font file. Try placing it somewhere in your home directory instead

Kagukara commented 8 months ago

Placing the font file in my home directory and editing the path of font_file= to the new directory didn't fix it.

Kagukara commented 8 months ago

Ignore me, I had the wrong name. That worked thank you.