Lazy web, is there a way in to calculate the number of columns a character will take up when drawn monospace? (eg CJK sometimes being 2, etc)
Found github.com/unicode-rs/uni but it seems to return a number that isn't the number of columns after the character is drawn.
Conversation
Yeah I currently use unicode-width in codespan-reporting for this. As says though, emoji is a challenge, and it's ultimately just an approximation, depending on how the text is shaped based on the font. Things go out the window when font fallbacks are involved. 😬

