-
Notifications
You must be signed in to change notification settings - Fork 31
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
Can CsConsoleFormat support output chinese words? #27
Comments
@wangshuai-007 However, the main problem is that .NET doesn't provide any API which can help with measuring these lines of text. No API for getting the current console font, no API to get printed console text length. Are all console "monspace" fonts with support for Chinese characters like this, with hieroglyphs being exactly twice in width compared to the rest of the characters? Maybe something can be done with this assumption... Note to self. Related: |
@Athari |
@wangshuai-007 Also, how much broken word wrapping will affect you? If the library doesn't find any good old spaces and hyphens, it'll fallback to breaking on the last character in a line, whatever it is. |
What does it mean?
It is not necessary to output multiple line words for me.But may be needed for others. |
If I output chinese words,the grid will broken,I think the problem is in the character calculation of Chinese characters.
My code is like this:
the output is the follow.
The text was updated successfully, but these errors were encountered: