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.44k stars 287 forks source link

The font scaling of MangoApp is causing font spacing errors when switching settings during runtime. #1036

Open Gawah opened 1 year ago

Gawah commented 1 year ago

Describe the bug I have written a plugin for customizing the performance monitoring style of Steam Deck. I have found that changing the font scaling setting may cause font spacing errors. For example, initially my font scaling setting was 1, as shown in the following figure: mangoapp_scale1 Then I set the font scaling to 2.: mangoapp_scale2 Finally, I set the font scaling back to 1, and you can see that the font spacing is different from the initial setting.: mangoapp_scale1(1) List relevant hardware/software information

To Reproduce Steps to reproduce the behavior:

  1. (For convenience of testing and to exclude the possibility of a bug in my plugin, test using the console.)Run in the console: gamescope -- sh -c "mangoapp& vkcube"
  2. To modify the configuration parameters, go to the directory /home/deck/.config/MangoHud/MangoHud.conf. You can set font_scale=1 or leave it unset.
  3. Modify the configuration parameters and set font_scale=2.
  4. Finally, change back font_scale to 1 or remove this parameter setting, and you will see that the font spacing is different from the beginning.

Expected behavior Regardless of the value set for font_scale, when font_scale and other configuration parameters are the same, the font spacing should be consistent.

flightlessmango commented 1 year ago

I can confirm this issue, but so far I don't know what causes it