Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto size font for screen resolutions #6342

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MjnMixael
Copy link
Contributor

The next step in getting built-in fonts to work for all screen resolutions...

This adds an optional flag for a font to automatically scale for the current screen resolution. The formula here is meant to get a font size for the current screen that'd be roughly equivalent to the defined font size if it were on a 1080p screen (the most popular screen resolution currently, according to Steam, and the one that's pretty close to what FSO has been targeting for years.

This is the same formula that SCPUI uses and with this in place SCPUI can have a single font slider in Options that affects all fonts game-wide should mods setup a compatible font system.

This will only work for TTF/OTF fonts and not the old bitmap fonts.

@MjnMixael MjnMixael added Waiting for Stable Marks a pull request that is to be merged after the next stable release, due to a release cycle feature A totally new sort of functionality labels Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A totally new sort of functionality Waiting for Stable Marks a pull request that is to be merged after the next stable release, due to a release cycle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant