-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[REQUEST] detect fonts automatically #3508
Comments
I'm afraid there isn't a way to detect the font or any possible font fallbacks in the terminal. |
https://learn.microsoft.com/en-us/windows/console/getcurrentconsolefontex |
Interesting, but this page even warns that "This API is not recommended and does not have a virtual terminal equivalent". Presumably this would only work in the classic conhost and not the new Windows Terminal? |
|
Let me clarify: even if your feature request could be implemented, it would only work on Windows and specifically in the old conhost, not in the new default Windows Terminal? |
yes, it would only work on Windows. but it also be used in the new terminal. |
I'm not clear on what output you would expect with a proportional font. Very little of Rich would work without a monospace font. Does this related to using Chinese characters in the terminal? Is it common for Chinese users to use proportional fonts? |
在提出功能请求之前,考虑在https://github.com/textualize/rich/discussions中发布反馈。
I have browsed all the relevant issues about "font". so many developers got an unexpected output, caused by it.
你如何提高富贵?
I think
rich
can add a feature that automatically detects terminal fonts. using ansi char when proportional font, otherwise not.它能为你解决什么问题?
in that case,
rich
can work better in Asia environmentThe text was updated successfully, but these errors were encountered: