I'm confused as to what the Fonts tab is used for in the GUI Theme Editor.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Y_VRN

I’m trying to make two Labels with different fonts, and thought the revamped Theme Editor’s fonts tab might make the changing of fonts easier.

Based on my understanding of the Theme Editor’s fonts tab, if I add new fonts in the theme it would be visible in a Label node’s Theme Overrides > Font when I try to change how the label looks, so I can change from a light to a bold font without having to drag & drop or create a new font.

Instead, I still have to drag & drop or make a new DynamicFont object. This left me confused.

Am I missing something? How do you actually use the fonts tab? Thanks in advance.

The fonts tab is this thing:
Image

:bust_in_silhouette: Reply From: sash-rc

if I add new fonts in the theme it would be visible in a Label node’s Theme Overrides

It wouldn’t. Theme (which is currently in effect for a particular Control) is used for default appearance for all items of given class (e.g. label). Control’s Theme Overrides is used when you want to override some properties for a particular instance. Final appearance id defined by a cascaded hierarchy, that looks complicated, but actually is very flexible and resembles CSS principles of cascading:

Built-in Godot Theme
Project’s default Theme
Parent control’s Theme
Control’s Theme
Control’s Theme Overrides

Personally, I’m mostly using some small themes like “Red label” with just some properties (like font, color) redefined for Label class, which is later assigned (as Theme) for a given Control instance.

p.s. Revamped editor is just it: editor, not theme engine.