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

Weird layout when wrapping a long word #82

Open
EnderHane opened this issue Jul 4, 2024 · 3 comments
Open

Weird layout when wrapping a long word #82

EnderHane opened this issue Jul 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@EnderHane
Copy link

The text is "ABCD" * 5
demo
Some characters advance too far and not visible within the width of layout.
(code)
Is it a bug or a corner case not to be considered?

@dfrg
Copy link
Collaborator

dfrg commented Jul 4, 2024

This looks like a bug. There are only two reasonable behaviors here: 1) render the whole “word” on one line and clip, or 2) wrap at a cluster boundary. This does neither.

Thanks for reporting.

@dfrg dfrg added the bug Something isn't working label Jul 7, 2024
@dfrg
Copy link
Collaborator

dfrg commented Jul 8, 2024

In addition, this behavior should probably be configurable either as a style property or for the whole layout.

@xorgy
Copy link
Member

xorgy commented Jul 9, 2024

There are Unicode codepoints which may also affect the expected behavior, when this is implemented properly (particularly U+2060 WORD JOINER [including ZWNBSP], and maybe U+00AD SOFT HYPHEN).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants