How to change font size in gdscript

Godot Version

4.2.2

Question

I need to change font size(or at least make it bold) of label in gdscript.

Create a Theme resource and assign it to the gui/theme/custom project setting.


Use RichTextLabel for more advanced features like bold or different font sizes on the same paragraph.

If you want to make text bold check out:

If you just want to change the size, you can do that in the Inspector under
‘Theme Overrides > Fonts > Font Sizes’

I just want to change font size of entire label in gdscript.

Find Theme Overrides/Font Sizes, in it you’ll see the font size property.