Open joshwatson opened 5 years ago
The root cause of this is the same reason we don't use subscripts for SSA. We figure that all characters in a monospace font take up the same amount of space. It's actually very non-trivial to figure out the width of a character without a dedicated library in the core. In your case one tab is one character and we therefore figure it takes the same amount of space as a normal character. I'm going to change the title to reflect the underlying issue.
Related to: #662
Additionally, using emoji can add weird space as well, probably because it calculates the width of the token based on the number of bytes in the emoji's unicode sequence. However, this does not cause the same kind of bug as above, where the text falls over the boundary of the block.
Yeah that is because the an emoji is like 4 characters that gets emitted as the width of 1 or 2 characters. Whereas a tab is 1 character which gets emitted as the width of 4 or 8. Its kinda the opposite problem
Also currently a tab is displayed as 9 chars wide, which is quite weird
the case for the tab is now fixed in 2307. Though the general case is not solved yet
This one is pretty self explanatory: