You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Merge pull request #80650 from bruvzg/comp_char_fix
[TextServer] Fix system font fallback and caret/selection behavior for composite characters.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user