I have a system_fonts.tres resource setup in the project options as a custom font to be used as the default font for any control.
This font resource has a number of fallback fonts in case one is not available on the users system. They are all standard mono spaced fonts so that really shouldn’t be a problem.
My question is, is it possible in code to change which font from this resource file is being used. It would be nice, to be able to cycle through these fonts should the user desire.
if you noticed, it needs to be a theme. but this setting should change the entire game font
but you will need to have the theme ready and load the font by theme with path
so the idea is to not use the project settings’s custom font
but instead, have your main node of your game or typically any main GUI node to change theme according to the user. this should guarantee your font changing without needing to restart the whole game