Font.get_string_size()
The font size is now separated from the font itself, so it makes sense to have an example for people coming from Godot 3.x.