0 votes

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

Godot version 3.4.2.stable
in Engine by (31 points)

1 Answer

0 votes

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.

by (1,646 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.