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

Allow user to change fonts #1236

Merged
merged 39 commits into from
May 12, 2024
Merged

Allow user to change fonts #1236

merged 39 commits into from
May 12, 2024

Conversation

chreden
Copy link
Owner

@chreden chreden commented May 1, 2024

Allows the user to change the fonts used in the program. Current options are for:

  • Default - pretty much everything
  • Console - the console window
    More can be added later.

Fonts are now retrieved by key and not stored by consumers so they can be switched without consumer having to deal with that.

Windows are adjusted to better handle resizing. The main tables will adjust for font sizing. The X button to delete a save in a route waypoint has been removed and replaced with a right click context menu.

Switches to using FreeType rendering for fonts as with the STB implementation loading some fonts would crash the application - the FreeType implementation lets us catch the errors a little better.

Closes #970

@chreden chreden changed the title Issue/970 Allow user to change fonts May 8, 2024
@chreden chreden added this to the Next milestone May 8, 2024
@chreden chreden marked this pull request as ready for review May 9, 2024 18:26
@chreden chreden self-assigned this May 9, 2024
@chreden chreden requested review from makotocchi and lahm86 May 9, 2024 18:26
Copy link
Collaborator

@lahm86 lahm86 left a comment

Choose a reason for hiding this comment

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

Looks great. The only slight usability thing I could see was if you press and hold the +/- buttons for changing font size - because the window size changes, the buttons shift from under the mouse so you need to re-position to continue changing the value. Can the event be delayed until the mouse is released maybe? If not, I don't think it's a big deal to be honest.

@chreden chreden merged commit 80bc31e into master May 12, 2024
2 checks passed
@chreden chreden deleted the issue/970 branch May 12, 2024 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow user to change font
2 participants