-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Font Glyphs are cut off by the Windows Terminal #5095
Comments
Maybe related to #4974 ? |
No ligatures, but oversized glyphs. But I preserve space for it with one empty char as postfix for each oversized glyph. But why only Windows Terminal struggled with this? |
Well, I honestly don't know...but as the v1.0 is not yet released, this is understandable. |
@DoCode How do you print this kind of 'oversized' glyph, though. I've tried |
@fabienheureux - ok thanks. |
@skyline75489 - I print this kind with simple following a whitespace, like
|
@DoCode could you share what font you're using as well? Also, are you sure that |
@zadjii-msft yes, Here's the font I used. |
U+F07C is in the Unicode Private Use Area. Powerline, and "nerd fonts", fill this up with a whole bunch of stuff. Their users are sometimes surprised, in my experience, to learn that Private Use Area really does mean something that does not work the same everywhere. In this case, Windows Terminal is treating the character as a narrow character. The whole Private Use range is marked as "ambiguous" width in the Unicode standard. U+1F5C1 is a standard character, with narrow width. Amusingly, Unicode version 13 now gives you U+1FBB9 and U+1FBBA for making a wide folder icon in a text display, in the way that computer people used to. (-: |
@jdebp thanks for the detailed explanation. |
It's a very unfortunate situation that we've been put into by the ill-defined use of the private use area. We may need to fix this as part of a holistic look at how we handle ambiguous-width characters. |
So, I've just installed one of these "fonts for nerds" and I cannot reproduce this issue in 0.11. There's an overlap problem, but I'm not seeing your folder glyph cut off if appropriate space is left for it. If appropriate space isn't left for it, there's not much we can do. At the end of the day, this glyph is reported as being "ambiguous" width and we've decided that ambiguous glyphs are one cell wide. Sorry. For the record, this seems to be very close to xterm's behavior (xterm-344 pictured below). and gnome-terminal |
Yes, we don't let the font outside of its bounding box if we're about to put another character right up against it. The result of striking the C or < down over the right side of the folder is visually offensive and cannot possibly be clearer than cutting it off. |
Environment
Steps to reproduce
Some Unicode glyphs are cut off, ONLY in Windows Terminal.
Expected behavior
ConEmu:
PowerShell Core:
PowerShell:
Actual behavior
Windows Terminal:
The text was updated successfully, but these errors were encountered: