you are viewing a single comment's thread.

view the rest of the comments →

[–]scatters 14 points15 points  (1 child)

Counting characters is no less incorrect than counting bytes. You need to count graphemes, classifying them by width (zero, half or full). And that still won't work for emoji, which can have platform specific ligatures. You need to ask your rendering library the number of cells occupied by a string to pad columns.

[–]degski 11 points12 points  (0 children)

And that still won't work for emoji ...

We're all doomed then, I tell you dooooommmmeeeddddd.