Not without drawbacks (e.g. control characters like "\n", "\t", etc are currently assumed to have width of -1 character), but so far this is the easiest method of determining visual width of Unicode text.
1 out of 1 found this review helpful. Was this review helpful to you? Yes No