Is there a better way to change font size in Godot?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By even_nuller

In unity there is a font size option on each text that would change the font size only on that text. But in Godot (Or at least to my knowledge) you have to create another dynamic font to change the font size on that text only so that the other texts won’t get ruined so, I was wondering is there a better way to change font size in Godot? Like a plugin somewhere that allowed you to do that?

:bust_in_silhouette: Reply From: Calinou

There is no built-in way to do this, but it should be possible to create an add-on that creates font resources for a given set of sizes and saves them to disk. You could then load those resources anywhere you need them (including RichTextLabel with a font tag).

In Godot 4.0, font size is set as a theme item rather than on the font resource, so it can be changed on individual nodes more easily.