raylib: fix text measure with emojis (#36546)

fix
pull/36547/head
Shane Smiskol 4 days ago committed by GitHub
parent 62aef9cd34
commit c7b115b68e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      system/ui/lib/text_measure.py

@ -20,6 +20,7 @@ def measure_text_cached(font: rl.Font, text: str, font_size: int, spacing: int =
for start, end, _ in emoji: for start, end, _ in emoji:
non_emoji_text += text[last_index:start] non_emoji_text += text[last_index:start]
last_index = end last_index = end
non_emoji_text += text[last_index:]
else: else:
non_emoji_text = text non_emoji_text = text

Loading…
Cancel
Save