godot text change font size code example
Example: godot dynamic font size
# when you need to resize a dynamic font for a label
var font = $my_label.get("custom_fonts/font")
font.size = 32
# when you need to resize a dynamic font for a label
var font = $my_label.get("custom_fonts/font")
font.size = 32