linebender / parley

Rich text layout library
Apache License 2.0
158 stars 18 forks source link

Weird layout when wrapping a long word #82

Open EnderHane opened 3 days ago

EnderHane commented 3 days ago

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 commented 2 days ago

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.