mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
e7c48e33a2
Fixed crash when rendering text containing emojis followed by long content. The breakLongWord function was iterating over UTF-16 code units instead of grapheme clusters, causing emojis (surrogate pairs) to be miscounted during line wrapping. Now uses Intl.Segmenter to properly handle multi-codepoint characters.
e7c48e33a2
ยท
2025-11-26 23:55:01 +01:00
History