diff --git a/scene/resources/dynamic_font.cpp b/scene/resources/dynamic_font.cpp index b59803c8445..b2c7bd3fd6b 100644 --- a/scene/resources/dynamic_font.cpp +++ b/scene/resources/dynamic_font.cpp @@ -265,6 +265,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;