Skip to content

Improve Unicode/CJK automatic wrapping in TextBlockClient - #307

Open
postyizhan wants to merge 1 commit into
KAMKEEL:devfrom
postyizhan:fix/CJK
Open

Improve Unicode/CJK automatic wrapping in TextBlockClient#307
postyizhan wants to merge 1 commit into
KAMKEEL:devfrom
postyizhan:fix/CJK

Conversation

@postyizhan

Copy link
Copy Markdown
  • Add a Unicode-aware line wrapper based on BreakIterator.
  • Support CJK text, mixed Chinese/English content, punctuation rules, long words, emoji, combining characters,surrogate pairs, and ZWJ sequences.
  • Preserve Minecraft § formatting codes across soft-wrapped lines.
  • Keep existing whitespace and hard-break behavior compatible.
  • Reuse Minecraft and custom font width measurements through TextBlockClient.
  • Add JUnit 4 coverage for Unicode, whitespace, formatting, emoji, and edge cases.

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.

1 participant