jsoftware / qtide

Qt IDE
Other
44 stars 11 forks source link

wcwidth should be used to measure visual width of Unicode string #4

Closed zhihaoy closed 4 years ago

zhihaoy commented 4 years ago

A boxed string of UTF-8 encoding is displayed as

┌──────────────────────────────────────────────┐
│C:\Users\zy\devel\jsource\makevs\jdll\测试.npy│
└──────────────────────────────────────────────┘

The last vertical bar is not aligned correctly. Chinese characters' width should be wcwidth.

bilam commented 4 years ago

are you using a fixed pitch font?

zhihaoy commented 4 years ago

are you using a fixed pitch font?

That seems to be the problem. Thanks.