how to set the size of a label in code?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By dezekeerjoran
:warning: Old Version Published before Godot 3 was released.

how to set the size of a label in code?

:bust_in_silhouette: Reply From: volzhs

With BitmapFont, you can’t.
With DynamicFont, you can do it by get_node("Label").get_font("font").set_size(10)