-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Characters from the range U+F900 to U+FAFF are displayed with a width of two #637
Comments
The U+F900 to U+FAFF range is used for CJK characters actually, so the terminal is expected double width characters there. |
Just stumbled over this in Windows Terminal code: UnicodeRange{ 0xe000, 0xf8ff, CodepointWidth::Ambiguous },
UnicodeRange{ 0xf900, 0xfaff, CodepointWidth::Wide }, The font (i.e. Nerd Font) has no influence on rendering if the terminal overrides our info. |
I feel like Nerd Fonts should avoid this Unicode range if a lot of terminal have problem with it, to be honest, but I’m not sure how practical or feasible it is. |
@tywtyw2002 see #574 and finally #716 |
In general--because there is no guarantee that a terminal-based application is even running on the same host as the terminal emulator--you cannot rely on the font to tell you how big a glyph is supposed to be. An application trying to simply print text would need to know what font is set (and perhaps even load it up and parse it, when it may not even exist on that system; output could be going to a printer, etc.) to accurately determine how to do so. Terminal emulators must therefore override all font info based on a standard that font authors and terminal emulator authors agree to. 😄 |
Glyphs finally dropped with v3.0.0 |
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference. |
🎯 Subject of the issue
ogham/exa can display icons using Nerd Fonts codepoints. However, it seems that some icons are displayed with one character more than expected, like U+FABF, and there’s no way, as far as I know, to accurately find out which size it is to workaround this problem.
🔧 Your Setup
★ Screenshots
The text was updated successfully, but these errors were encountered: