Fix crash when using get_available_chars with invalid DynamicFontData
This commit is contained in:
parent
4396ee18af
commit
bec1dcb6f6
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue