Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RichTextLabel auto-wrapping on chinese #21482

Closed
Tracked by #39144
ganlub opened this issue Aug 27, 2018 · 2 comments
Closed
Tracked by #39144

RichTextLabel auto-wrapping on chinese #21482

ganlub opened this issue Aug 27, 2018 · 2 comments
Assignees
Milestone

Comments

@ganlub
Copy link

ganlub commented Aug 27, 2018

Godot version:
v3.0.6

OS/device including version:
Archlinux

Issue description:
I'm getting different behaviors on Label and RichTextLabel regarding auto-wrapping and spacing.
image

This is the output I'm getting, as you can see the RTL isn't handling it the same way. This is caused by the space that follows the hyphen.

There's no difference when RTL bbcode is enabled.

I've found #3081 which marks #1848 as done, but I'm not sure it's the same issue.

Steps to reproduce:
Add a RichTextLabel to your scene and set this text: - 你是个乐观主义者,你制定的计划永远会关注产出和利益,不过也千万记得关注风险与劣势,这样才能让你提高成功几率;

Minimal reproduction project:
There's an official RichTextLabel demo that could be used as a playground.

Edit: As a workaround I've found that with other whitespace characters this isn't happening. For example with: U+2002.

@KoBeWi
Copy link
Member

KoBeWi commented Nov 13, 2020

This will be probably fixed by Complex Text Layout PRs.

@akien-mga
Copy link
Member

Fixed by Complex Text Layouts in 4.0, and fixed by #49280 in 3.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants