Skip to content

Commit

Permalink
Merge pull request godotengine#88089 from bruvzg/fix_bmp_kern
Browse files Browse the repository at this point in the history
[TextServer] Fix bitmap font kerning override.
  • Loading branch information
akien-mga committed Feb 8, 2024
2 parents 312eb20 + 04c0e44 commit a010660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/text_server_adv/text_server_adv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a010660

Please sign in to comment.