diff --git a/modules/text_server_adv/text_server_adv.cpp b/modules/text_server_adv/text_server_adv.cpp index b4028492c7..4c460a002f 100644 --- a/modules/text_server_adv/text_server_adv.cpp +++ b/modules/text_server_adv/text_server_adv.cpp @@ -3274,7 +3274,7 @@ TypedArray TextServerAdvanced::_font_get_kerning_list(const RID &p_fon ERR_FAIL_COND_V(!_ensure_cache_for_size(fd, size), TypedArray()); TypedArray ret; - for (const KeyValue &E : fd->cache) { + for (const KeyValue &E : fd->cache[size]->kerning_map) { ret.push_back(E.key); } return ret;