text: Give default font a default name

This is mostly so that the texture gets a name other than "_0"
This commit is contained in:
rdb 2025-12-31 20:00:09 +01:00
parent b4b18724bd
commit 3d3c2e7b7c
1 changed files with 4 additions and 0 deletions

View File

@ -489,4 +489,8 @@ load_default_font() {
#endif // HAVE_FREETYPE
#endif // COMPILE_IN_DEFAULT_FONT
if (_default_font != nullptr && !_default_font->has_name()) {
_default_font->set_name("default_font");
}
}