Godot Version
4.3
Question
I want to make a checkbox in the options menu that when is checked it changes the font of the game or actual theme
4.3
I want to make a checkbox in the options menu that when is checked it changes the font of the game or actual theme
You could change a theme’s .default_font
and apply that theme to most of your game.
I came to that conclusion but I don’t find a method to implement it.
I could create a duplicate of the original theme with the alternative font and make the checkbox change to that but I want to make it more dynamic something like theme.override_font(alternativeFont).
In the docs you have set_font as a theme method.
So something like this would do it:
var new_font = load("res://path/to/your/new_font.tres")
theme.set_font("font", "Label", new_font)