Skip to content

Conversation

@jbellionjourdan
Copy link
Contributor

@jbellionjourdan jbellionjourdan commented Aug 24, 2025

Fixes #1784

When font_size_secondary was not set, it defaulted to 0.55f * font_size regardless of the no_small_font flag.

Now, when no_small_font is set this default becomes 1 * font_size.

ImguiNextColumnOrNewRow();

HUDElements.TextColored(HUDElements.colors.text, "%s\n", HUDElements.get_present_mode().c_str());
right_aligned_text(HUDElements.colors.text, HUDElements.ralign_width * 1.5f, "%s\n", HUDElements.get_present_mode().c_str());
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even tho in most places 1.3 is used instead of 1.5, it will line up?
Maybe it should be 1.5 in every place? making a descriptive variable for it might also be good

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't see many other occurrences of the 1.3, i think there were 2 of them in some complex metric (maybe related to gamescope but unsure).
I didn't know how to test this one so i'd rather have a slight misalignment than risking to break something on that.

Honestly this number is totally empiric, there was already some misalignment with other metrics before, i fiddled a bit with the value to see what impact it'd have, and 1.5 was the best fit i found.

If you want i'll try to find time to dive deeper in this, or pull it in a separate PR, here i mainly wanted to make a quick working fix for the no_small_font issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

no_small_font isn't working: "secondary" fonts remains too tiny

2 participants