summaryrefslogtreecommitdiffstats
path: root/scene/gui/rich_text_label.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-18 17:24:54 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-08-18 17:24:54 +0200
commitb51ee8b029b0b9f719f01bbdd21a329e65d4d238 (patch)
tree52e79f7d4582023148fe24a494606e4792e419fa /scene/gui/rich_text_label.cpp
parenta2a1ed1aac1cd7caa418a0a35a936f289b886a41 (diff)
parent5d3fcc57669c4104a85c79327f7c2662a0d191a3 (diff)
downloadredot-engine-b51ee8b029b0b9f719f01bbdd21a329e65d4d238.tar.gz
Merge pull request #80650 from bruvzg/comp_char_fix
[TextServer] Fix system font fallback and caret/selection behavior for composite characters.
Diffstat (limited to 'scene/gui/rich_text_label.cpp')
-rw-r--r--scene/gui/rich_text_label.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index 1e7e376fc8..4780ce873c 100644
--- a/scene/gui/rich_text_label.cpp
+++ b/scene/gui/rich_text_label.cpp
@@ -1585,6 +1585,7 @@ float RichTextLabel::_find_click_in_line(ItemFrame *p_frame, int p_line, const V
}
} else {
char_pos = TS->shaped_text_hit_test_position(rid, p_click.x - rect.position.x);
+ char_pos = TS->shaped_text_closest_character_pos(rid, char_pos);
}
}
line_clicked = true;