Managing Theme and Font for multiple language

Godot Version

4.4

Question

So I am starting to do some themes in Godot, and I have added a font into them. But then, when I am about to add another language, I realized that the theme allows you to only use one font…

In this case, suppose we are supporting multiple languages and we would like to use each particular font for each particular language , what would be the recommended way?

Creating multiple themes for multiple fonts for multiple languages make no sense, and one solution here I could think of is to do all of these programmatically instead. So in the _ready() function of all relevant Controls , I would programmatically set the font with respect to the current language setting.

But before I do that, I would like to ask: are there other ways to manage this?

Help > UI

1 Like

You can use a FontVariation if you have a base font and have other fonts that act as fallbacks if the font does not have the corresponding glyph.

You can also try using resource remapping I’ve not tried it and the manual says that it does not work but it may be outdated (DynamicFont is a Godot 3.x resource).