I have a node that I want to draw some text for in the editor.
tool
extends Node2D
...
func _draw():
...
if (get_tree() != null) and get_tree().is_editor_hint():
draw_string(..., get_pos(), some_text, Color(1, 1, 1))
For draw_string
I want to use the default editor font; it wouldn't make sense to add a Font property to this node and this is only for drawing in the editor. How do I get the default font?