3 ms·
This breaks down in the terminal where you need to know which codepoints are double width for managing layout. Some are ambiguous width because they've been pre
by kevin_thibedeau 4y ago
This breaks down in the terminal where you need to know which codepoints are double width for managing layout. Some are ambiguous width because they've been present since before the inclusion of emoji and had optional emoji presentation added to them. The final determination is font dependent so you can never be sure without full insight into the rendering chain.
- pie_flavor 4y agoThis doesn't break down anything. If a grapheme cluster is double width and you treat it as 5x because there's 5 code points in it, then you've still gotten the layout wrong. You can enforce text storage length limitations to prevent infinite zalgo, but text display length limitations should always deal in extended grapheme clusters.