From 695980a0f21adbe66eb12e1015fdc8c51fb62bf9 Mon Sep 17 00:00:00 2001 From: wingedadventurer Date: Mon, 6 Jan 2020 23:21:30 +0100 Subject: [PATCH] make Label consider spaces for visible_characters --- scene/gui/label.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp index fa795361a8e..caa6e93ede3 100644 --- a/scene/gui/label.cpp +++ b/scene/gui/label.cpp @@ -225,6 +225,7 @@ void Label::_notification(int p_what) { return; } if (from->space_count) { + chars_total += from->space_count; /* spacing */ x_ofs += space_w * from->space_count; if (can_fill && align == ALIGN_FILL && spaces) {