Godot - Change Label text outline color and size
GDScript code example to change Label text outline color and size.
By specifying "font_outline_color" property with add_theme_color_override()
, it is possible to change Label text outline color.
Also, by specifying "outline_size" property with add_theme_constant_override()
, the outline size can be changed.
var label = Label.new()
add_child(label)
label.add_theme_color_override("font_outline_color", Color("#FF2222", 1))
label.add_theme_constant_override("outline_size", 5)