Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed|Client|FontLineWrapping: Wrapping tabbed lines
Now the line wrapper correctly takes tab stops into account when determining wrapped rich text lines. Also added some more comments and cleaned up the code a little.
- Loading branch information
Showing
1 changed file
with
77 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
645911f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work, this seems to have fixed all(?) the line wrapping issues.
How feasible is a Config option for the 'justified' scaling of lines in the console history? I'd like to either reduce or disable this personally as I find it sometimes adversely affects readability.
645911f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean the slight justification that occurs when there is still plenty of room for the text (this is a bug), or the major compression that occurs when there isn't enough room to fit all the tabs?
645911f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The major compression which I believe a applies a 15% scaling 'leeway'. In traditional typesetting terms I would rather a 'ragged edge' than 'rivers' of white space (though this doesn't actually happen in our case for numerous reasons).
645911f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The underlying problem here is what to do when the tab layout runs out of space. The compression is the current solution that gives the rightmost column a bit more space by sacrificing legibility. I suppose a better solution would be to instead collapse the tab column to the next line.
645911f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps the ability to break long words onto the following line with a hyphen would help? Naturally this should only be done when necessary, though.