-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
\t
tab escape sequence support in text
#9761
Comments
Rendering tabs would be nice. But I don't know if I've ever seen an implementation that would render as expected. I think there's usually some sort of column width limitation if tabs are supported at all. Here's a selection of examples from a few apps on this machine: The bottom is |
Yeah it's not a great example, maybe using grid would be a better approach there. I'm starting to have some really terrible ideas about how to hack tabs into current bevy, need to find something useful to do before I waste my time implementing them. |
It looks like support for tabs was added in |
I would like to test in a |
It does seem that this would be fixable if we exposed the tab width option for cosmic buffers. (Text above modified to only include first tab of each line, and tab width set to 11) |
What problem does this solve or what need does it fill?
from the
display_and_visibility
example:In order to format the text it is displayed in three vertical columns. It's extremely unclear what this code is meant to do without running the example to see the displayed output.
A more natural way to write this would be to use tab escape sequences:
What solution would you like?
It seems tricky to add tabs from within
bevy_text
itself andglyph_brush_layout
ignores\t
.Maybe the cosmic text implementation will support tabs, I'm not sure.
The text was updated successfully, but these errors were encountered: