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

fix fallback font rendering #78978

Closed

Conversation

CLIDragon
Copy link
Contributor

@CLIDragon CLIDragon commented Jan 6, 2025

Summary

Bugfixes "Fallback font rendering works again"

Purpose of change

I accidentally broke fallback font rendering in #78830, causing #78966.

fixes #78966

Describe the solution

Add an else statement.

Describe alternatives you've considered

None.

Testing

Game no longer crashes with given font config file.

Additional context

I'm mildly surprised static analysis didn't catch this.

@github-actions github-actions bot added Info / User Interface Game - player communication, menus, etc. [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) labels Jan 6, 2025
@github-actions github-actions bot added the json-styled JSON lint passed, label assigned by github actions label Jan 6, 2025
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions bot added the astyled astyled PR, label is assigned by github actions label Jan 6, 2025
@CLIDragon CLIDragon marked this pull request as draft January 6, 2025 04:10
@CLIDragon
Copy link
Contributor Author

Using the fonts.json in the linked issue, loading the game gets a font made of only rectangles instead of the expected font. This only occurs if debugmsg is called - commenting it out causes the fallback to load normally.
image

@CLIDragon
Copy link
Contributor Author

@db48x #78999 obsoletes this PR so I can't see any reason to leave it open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

game crashes on startup
2 participants