1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

[TextServer] Shape emojis as separate runs.

This commit is contained in:
Pāvels Nadtočajevs
2025-09-02 13:03:50 +03:00
parent 825ef2387f
commit ddde1c07a6
4 changed files with 44 additions and 9 deletions

View File

@@ -68,7 +68,8 @@ public:
Vector<ScriptRange> script_ranges;
private:
static bool same_script(int32_t p_script_one, int32_t p_script_two);
inline static bool same_script(int32_t p_script_one, int32_t p_script_two);
inline static bool is_emoji(UChar32 p_c, UChar32 p_next);
public:
ScriptIterator(const String &p_string, int p_start, int p_length);