-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
Loads fonts from registry
Will need to recalculate all the time - but can improve it.
Just have a context menu instead because the sizing is tricky.
Will manage loading fonts as safely as possible.
Handle failure to some degree
Also fix icon alignment #970
There was a problem hiding this 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.
Allows the user to change the fonts used in the program. Current options are for:
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