Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formatContentAsTableByCustomCharacter doesn't align Chinise charactor #44

Open
MoonlightSinger opened this issue Jul 22, 2022 · 2 comments
Labels
feature request New feature or request

Comments

@MoonlightSinger
Copy link

MoonlightSinger commented Jul 22, 2022

I often user formatContentAsTableByCustomCharacter . But if I use it to format this text :

|1|dfds|删掉|1232|
|1|dfds|12|1232|

it format result is this:

|1|dfds|删掉|1232|
|1|dfds|12|1232|
I want format Chinise charactor by two char width. Please fix this .Text-Power-Tools is very good tool for me .Thank you.

@qcz
Copy link
Owner

qcz commented Aug 3, 2022

Hello @MoonlightSinger!

The problem is that if we count chinese characters as two, it still won't align properly (at least for me in VS Code):

Képernyőfotó 2022-08-03 - 11 19 01

Is this output OK for you?

I'm thinking of adding a setting for it, so you will be able to enable it for yourself. (So it won't be on by default.)

@MoonlightSinger
Copy link
Author

@qcz Thank you for your reply.
I found VS Code use "Consolas, 'Courier New', monospace" font family by default.The first font Consolas is not monospaced font. So Chinise font doesn't occupy two standard ascii characters width.Using SimSun font can solve this problem.
So your saved pic is right for me. Adding a setting for this is good idea.You can customize it like setting non-ascii char width.

@qcz qcz added the feature request New feature or request label Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants