mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
[TextServer] Fix range for zero-width glyphs extra spacing.
This commit is contained in:
@@ -6859,8 +6859,8 @@ void TextServerAdvanced::_shape_run(ShapedTextDataAdvanced *p_sd, int64_t p_star
|
||||
|
||||
unsigned int last_non_zero_w = glyph_count - 1;
|
||||
if (last_run) {
|
||||
for (unsigned int i = glyph_count - 1; i > 0; i--) {
|
||||
last_non_zero_w = i;
|
||||
for (int64_t i = glyph_count - 1; i >= 0; i--) {
|
||||
last_non_zero_w = (unsigned int)i;
|
||||
if (p_sd->orientation == ORIENTATION_HORIZONTAL) {
|
||||
if (glyph_pos[i].x_advance != 0) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user