osu-framework
osu-framework copied to clipboard
TextFlowContainer should wrap on individual characters as a last resort
In order to not overflow the parenting container, TextFlowContainer should be able to resort to wrapping on an individual character basis. This will need additional consideration for e.g. links (https://github.com/ppy/osu/issues/10085).
Semi-related: https://github.com/ppy/osu/issues/14837
I Think, it same case about this.
In osu!web

In osu!lazer

@baharsah the issue you describe above is unrelated. the component in lazer shown on the screenshot is not even using text flow right now.
How does the TextFlowContainer decide where a line break should go? Is it some part of computeLayout? I noticed this also affects multiplayer chatrooms, e.g. if a long, unbroken row of characters is sent, it overflows that chat boundary as well.
I was about to post an issue on the main osu! repo, but I just about stumbled into this issue. Would it make sense to do that, so that others are aware it's a known bug?
How does the
TextFlowContainerdecide where a line break should go? Is it some part ofcomputeLayout? I noticed this also affects multiplayer chatrooms, e.g. if a long, unbroken row of characters is sent, it overflows that chat boundary as well.
See TextChunk.SplitWords() for the answer to that.
I was about to post an issue on the main osu! repo, but I just about stumbled into this issue. Would it make sense to do that, so that others are aware it's a known bug?
It would not make much sense as it's the same issue.