Skip to content

feat: implement UnicodeWidthStr for Text/Line/Span#2030

Merged
joshka merged 1 commit intomainfrom
joshka/push-xsoztxtllvlp
Aug 1, 2025
Merged

feat: implement UnicodeWidthStr for Text/Line/Span#2030
joshka merged 1 commit intomainfrom
joshka/push-xsoztxtllvlp

Conversation

@joshka
Copy link
Copy Markdown
Member

@joshka joshka commented Jul 31, 2025

You can now calculate the width of any Text/Line/Span using the UnicodeWidthStr trait instead of the width method on the type. This also makes it possible to use the width_cjk() method if needed.


From ratatui/tui-widgets#94 (comment)

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants