summaryrefslogtreecommitdiffstats
path: root/modules/text_server_adv
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-02-07 19:21:49 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-02-08 08:32:45 +0200
commit04c0e4446fd14f63e287a4d481ae26726159abf6 (patch)
tree6d730e77ac6b1e0c9073f38ee70b0a291e29a6e7 /modules/text_server_adv
parent36e943b6b20cb7a8a89bc30489c4a81c3e149d74 (diff)
downloadredot-engine-04c0e4446fd14f63e287a4d481ae26726159abf6.tar.gz
[TextServer] Fix bitmap font kerning override.
Diffstat (limited to 'modules/text_server_adv')
-rw-r--r--modules/text_server_adv/text_server_adv.cpp2
1 files changed, 1 insertions, 1 deletions
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<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;