raylib: fix text measure with emojis (#36546)

fix
This commit is contained in:
Shane Smiskol
2025-11-02 04:30:08 -08:00
committed by GitHub
parent 62aef9cd34
commit c7b115b68e
+1
View File
@@ -20,6 +20,7 @@ def measure_text_cached(font: rl.Font, text: str, font_size: int, spacing: int =
for start, end, _ in emoji:
non_emoji_text += text[last_index:start]
last_index = end
non_emoji_text += text[last_index:]
else:
non_emoji_text = text