diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-02-07 19:21:49 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-02-08 08:32:45 +0200 |
commit | 04c0e4446fd14f63e287a4d481ae26726159abf6 (patch) | |
tree | 6d730e77ac6b1e0c9073f38ee70b0a291e29a6e7 /modules/text_server_adv | |
parent | 36e943b6b20cb7a8a89bc30489c4a81c3e149d74 (diff) | |
download | redot-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.cpp | 2 |
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; |