Skip to content

Add interface fonts options#1407

Open
williamchange wants to merge 1 commit intoRodZill4:masterfrom
williamchange:interface-fonts
Open

Add interface fonts options#1407
williamchange wants to merge 1 commit intoRodZill4:masterfrom
williamchange:interface-fonts

Conversation

@williamchange
Copy link
Copy Markdown
Contributor

@williamchange williamchange commented Apr 28, 2026

Adds custom font/size options

image

.
If system fonts are enabled, sans-serif will be used be in place of the custom main/medium/bold fonts that are set in preferences.

These settings could probably be applied without restarting, but I am getting a lot of "fd" is null errors if I do that so this is what I have for now.

@Calinou
Copy link
Copy Markdown
Contributor

Calinou commented Apr 30, 2026

If system fonts are enabled, sans-serif will be used be in place of the custom main/medium/bold fonts that are set in preferences.

It might look better to use a tailored set of system font names according to the platform, as per this proposal:

This can be implemented in scripting by checking for the current OS and using the relevant font name.

@williamchange
Copy link
Copy Markdown
Contributor Author

SF Pro wasn't available on my machine so I have to get it from https://developer.apple.com/fonts/ to test on macOS

It seems to have problems with MSDF rendering so I only added Windows changes for now

image

@williamchange
Copy link
Copy Markdown
Contributor Author

williamchange commented May 1, 2026

Added option to switch between msdf/oversampling

image

@Calinou
Copy link
Copy Markdown
Contributor

Calinou commented May 1, 2026

I think exposing a MSDF toggle makes sense to fix fonts with self-intersecting outlines, but exposing oversampling is kind of a double-edged sword. Setting it too high will make small text look grainy (only zoomed-in graphs will benefit from oversampling).

Fixing rendering of MSDF fonts with self-intersecting outlines requires godotengine/godot#61555. It works, but it adds a lot of binary size for niche functionality, so we'd prefer avoiding it if possible.

@williamchange
Copy link
Copy Markdown
Contributor Author

Removed oversampling options

image

@williamchange williamchange marked this pull request as ready for review May 5, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improved Interface Font

2 participants