Make font hinting user-configurable.#78830
Conversation
a4455d6 to
8c756a9
Compare
|
This could do with some temporary migration for the default fonts otherwise noone keeping their config on update will get the changes unless I'm misunderstanding |
db48x
left a comment
There was a problem hiding this comment.
Overall I like this change, but I have one or two suggestions.
9568aae to
8c756a9
Compare
8c756a9 to
192d0f0
Compare
I've changed it so that |
* Configure default hinting for Terminus and Roboto to better values. * Document font options in docs/FONT_OPTIONS.md * Fix the slight blurriness of Terminus on ImGui which was caused by not hinting in bitmap mode.
29d0299 to
48d6286
Compare
|
I expanded the documentation and made some other small tweaks. I sent them to you in CLIDragon#2. |
|
Sent you another tweak in CLIDragon#3. |
|
Failing on |
|
Just a preview: Screencast.From.2025-01-13.01-35-21.mp4 |




Summary
Interface "Make font-hinting user-configurable"
Purpose of change
Fixes the slight blurriness of Terminus on ImGui windows which was caused by not hinting in bitmap mode.
fixes #73120
Describe the solution
The font is loaded through the same
fontdata.jsonfile that was always used.I'm not really happy with the clarity of the error messages, but I am not sure how to make them clearer. I don't think it's possible to use
JsonWithPath.throw_error()because if it occurs before the first typeface is loaded the game will crash before load.Describe alternatives you've considered
None.
Testing
Loaded the game. Checked that error messages were displayed appropriately for incorrect sizes.
Additional context
Current

Previous
