godot
godot copied to clipboard
Default Theme's Default Font cannot be a scripted DynamicFont(and more)
Godot version
3.5,3.5.1
System information
multiple
Issue description
When you have a Default Theme for your project and it has a DynamicFont
with a script attached as the Default Font you will get this error :
Parser Error: Unknown class: "DynamicFont"
also when closing godot after getting that error a segfault error is generated.
apart from that, a similar issue occurs when you try to script the default theme itself.
Steps to reproduce
Set a Default Theme in Project Settings with a scripted DynamicFont
as it's Default Font.
Minimal reproduction project
No response
What I found to be working (at least in 4.0) is adding a .ttf
directly as the default theme font via the project settings. I can't find DynamicFont
when importing a font at all. Curiously enough Godot filters out anything besides .tres
when selecting the default font, but switcht o Allow all files
and choosing a .ttf
just works.