Closed bschwind closed 4 years ago
Soft breaks can't happen when there's no max width, but there can be hard breaks. I'll fix that for 0.4
Makes sense, much appreciated!
Should be fixed with the rewrite. Feel free to reopen this if it still shows up in 0.4 (not yet published, but on HEAD)
Hi,
I'm not sure what the intended behavior is here, but when
max_width
is set toNone
inLayoutSettings
, hard line breaks have no effect. Relevant code:https://github.com/mooman219/fontdue/blob/3e2f51fe70fd7ab21ff70652ff8c2798f6e9fc65/src/layout.rs#L200
If this is intentional then that's totally fine, I'll specify a relevant maximum width.
Thanks for the great library!