Investigate using `unicode-width`
Xion opened this issue · comments
The unicode-width
crate determines the character width of Unicode strings, and should most likely be used for the line breaking algo. It's unclear if it can completely help with the clipping/overflowing issue we see sometimes, but it should at least allow to detect the invisible/zero-width characters more robustly.