Closed ziofat closed 6 years ago
I notice the CJK characters are also not aligned correctly. They should exactly as wide as 2 normal characters.
@Tyriar Actually they are. The Japanese line seems not aligned correctly is because the 、
symbol has weird width in VSCode. I checked and found this was my font settings issue and corrected it as Sublime Text. When using Yahei font, the 、
should be full width as general CJK characters.
And this is what it looks like:
The column selection is implemented with logical columns (not "screen columns") -- we definitely have similar issues for RTL text, for Bi-Di and for non-monospace fonts.
Implementing column selection with "screen columns" is IMHO difficult.
I think you don't need to think it as screen column, just make column selection smarter. VSCode already treats the tab as 4-width length charcter (which can be set in preference), and CJK will be 2-width length in monospace font (it is not necessary to be available in preference because all monospace CJK font have same size.). User can choose their font to suit the editor but not languages.
Duplicate of #22717
Steps to Reproduce:
The sentences above are official translation of UDHR.
The behavior is:
CJK characters are usually have double width than other characters. So visually the column of CJK characters and English characters are not same. When I use column selection to select CJK/English mixed codes this issue will affect the result.
The expected behavior is like what Sublime Text does: