I'm re-learning godot from scratch so this would be interesting fdor me to dig at.
Are you using GD script, C# or both?
First guess is that it will be in theme overrides so you can set from there in code.
Can you give example of the label node type like is it text, rectangle, color rect etc?
I'll get through this with you lol 😃
: