[TextServer] Fix bitmap font kerning override.

This commit is contained in:
bruvzg 2024-02-07 19:21:49 +02:00
parent 36e943b6b2
commit 04c0e4446f
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38

View file

@ -3274,7 +3274,7 @@ TypedArray<Vector2i> TextServerAdvanced::_font_get_kerning_list(const RID &p_fon
ERR_FAIL_COND_V(!_ensure_cache_for_size(fd, size), TypedArray<Vector2i>());
TypedArray<Vector2i> ret;
for (const KeyValue<Vector2i, FontForSizeAdvanced *> &E : fd->cache) {
for (const KeyValue<Vector2i, Vector2> &E : fd->cache[size]->kerning_map) {
ret.push_back(E.key);
}
return ret;