From c0bd05762e0398589f78f2f0c4a5f4efdce786f0 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Wed, 16 Mar 2022 17:40:14 +0800 Subject: [PATCH] Revert "Fixed underlines and striketrough not respecting visible character" This reverts commit 8bbcc624fdd86bb6edeb51d16b238264d472647d. --- scene/gui/rich_text_label.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index 4d2abbfe59f..6b80c2a6674 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -438,6 +438,7 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int & was_separatable = separatable; just_breaked_in_middle = false; + w += cw; fw += cw; end++; @@ -579,7 +580,6 @@ int RichTextLabel::_process_line(ItemFrame *p_frame, const Vector2 &p_ofs, int & if (visible) { line_is_blank = false; - w += font->get_char_size(c[i], c[i + 1]).x; } if (c[i] == '\t') {