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

[REQUEST] detect fonts automatically #3508

Open
xun-xh opened this issue Sep 30, 2024 · 7 comments
Open

[REQUEST] detect fonts automatically #3508

xun-xh opened this issue Sep 30, 2024 · 7 comments

Comments

@xun-xh
Copy link

xun-xh commented Sep 30, 2024

在提出功能请求之前,考虑在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 environment

Copy link

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

@TomJGooding
Copy link
Contributor

I'm afraid there isn't a way to detect the font or any possible font fallbacks in the terminal.

@xun-xh
Copy link
Author

xun-xh commented Oct 3, 2024

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

@TomJGooding
Copy link
Contributor

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?

@xun-xh
Copy link
Author

xun-xh commented Oct 9, 2024

We do not recommend using this content in new products, but we will continue to support existing usages for the indefinite future.

@TomJGooding
Copy link
Contributor

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?

@xun-xh
Copy link
Author

xun-xh commented Oct 10, 2024

yes, it would only work on Windows. but it also be used in the new terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants