diff --git a/scene/resources/dynamic_font.cpp b/scene/resources/dynamic_font.cpp index f235676c7d4..4ceacf73d8c 100644 --- a/scene/resources/dynamic_font.cpp +++ b/scene/resources/dynamic_font.cpp @@ -256,6 +256,10 @@ Size2 DynamicFontAtSize::get_char_size(CharType p_char, CharType p_next, const V } String DynamicFontAtSize::get_available_chars() const { + if (!valid) { + return ""; + } + String chars; FT_UInt gindex;