Any tricks to minimize it?

The TTF resources are paired with the scenes in a directory holding the scene and its scripts at the moment. I worry that this causes the editor to reload the TTF a lot.

Strange. I've used custom fonts in my game, and never noticed any slow down. I use OTF fonts usually. How are you loading the fonts? Via a script on in the theme inspector?

Make sure the font data itself isn't being serialized as Base64 in text-based resources. Check the sizes of your .tscn and .tres files and make sure none of them is exceeding 500 KB or so.

@Calinou said: Make sure the font data itself isn't being serialized as Base64 in text-based resources. Check the sizes of your .tscn and .tres files and make sure none of them is exceeding 500 KB or so.

I actually have two resources with data this large:

25M Nov 24 07:14 ..../white_hall_theme.tres 25M Nov 24 07:14 ./editor_theme.tres

how to fix?

@dotted I recommend not generating a theme based on the editor theme, as all icons will be included within the theme resource. However, you most likely won't use most of those icons (and those that you do use should be saved as external images).

Instead, creating a theme from scratch will give you something much more optimized.

Godot 3.4 has a revamped theme editor which may be able to generate more optimized themes from the editor, but you have to regenerate it instead of using an old theme resource generated from Godot 3.3.x.

OK. Editing themes require a significant perspective change because of the way its organized. The context change tends to give me migraines unfortunately.

It's much easier to duplicate and modify. It may be easier to simply gut out the stuff I don't need since I am only styling a Label. I use Label only for motion graphics in an animated scene.

If you just need a font on a label, you can just add a font in the theme override. No need for a full theme.

Um I have multiple label instances. If the override can be referenced in them; I thought that's what a theme is for

You can still create a new Theme resource from scratch – just don't use the editor theme as a base. Define a default font in the Theme resource and leave it there :)

a year later