atom-alignment icon indicating copy to clipboard operation
atom-alignment copied to clipboard

when array keys are Chinese characters, atom-alignmen is not working fine

Open xs47968224 opened this issue 9 years ago • 1 comments

$lang['我的帐号'] = 'My Account'; $lang['登陆'] = 'Login'; $lang['登出'] = 'Logout';

Big But !!! I does not meaning it's a issue, issue is i'm using Chinese characters as array keys. It's better if atom-alignment can support this one Thanks

xs47968224 avatar May 14 '16 02:05 xs47968224

Alignment is based on the number of characers, not the width of individual characters (since they should all be the same width in a typical monospaced font).

This issue is actually caused by the chinese glyphs being wider than any other character in a monospaced font (~1.7x in Source Code Pro at 12pt for example). It's simply not possible to properly visually align anything involving such characters.

YodaDaCoda avatar Jan 23 '17 03:01 YodaDaCoda