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
Icons in the commits panel are broken in Console #2200
Comments
Same for me using GNOME Terminal 3.45.90 on Fedora 37 with Hack Nerd Font Mono. |
Hi guys, I'm a VTE developer, VTE is the terminal widget behind GNOME Console and GNOME Terminal. I would like to reproduce the issue and then locate the bug. Could you please help me by providing step by step directions in order to reproduce the issue: Where do you download the said font from? How do you install it exactly? How do you configure your terminal exactly to pick that font? I downloaded a JetBrains Mono font from two different places, but neither of them actually calls it "JetBrains Mono Regular Nerd Font Complete". How do you exactly configure and start up Also: what does Please provide step by step instructions, unfortunately I'm not familiar with these "hacker"-type fonts, nor with |
Oh. Just noticed that someone managed to reproduce this with Terminal.app, too. It's surely not a problem in VTE (GNOME Console, GNOME Terminal) then. |
Okay, I took another attempt (after a couple of failed ones) and managed to reproduce it. I found somewhere that I should place this in
to get those icons, indeed breaking the layout. The characters there are U+FC16 "ARABIC LIGATURE [...]", U+FB2C "HEBREW LETTER [...]" and presumably several similar ones. Overriding the look and the role of these characters is wrong on many levels. Any legitime text might contain them and their look would become broken. There are designated Private Use Areas in Unicode for such purposes. But, most importantly right now: these characters have Right To Left directionality. The Unicode BiDirectional Algorithm kicks in in certain terminals, and reshuffles the cells. As a quick workaround, in VTE BiDi treatment can be disabled by The proper solution, both for fonts and apps, is to stay clear from overriding existing codepoints (especially RTL ones), and use codepoints from the Unicode Private Use Areas. For bonus points, work towards making these symbols officially part of Unicode. |
Try
instead, this should fix it (if your nerd fonts are up to date, that is). |
At the time of writing, That said, I don't seem to be able to reproduce the issue anymore. Seems like it has been fixed when Nerd Fonts v3 came out. |
@stefanhaller @paveloom Thanks for the quick response to both of you! Indeed in It looks like it's indeed been fixed in Nerd Fonts v3, it uses Private codepoints. I'm happy to hear it. Also happy that we know what really caused the troubles with v2. You may close this bug, or may decide to apply the |
Describe the bug
This is how it looks with the
JetBrains Mono Regular Nerd Font Complete
in Console:Same for
Hack Regular Nerd Font Complete Mono
andFira Code Regular Nerd Font Complete Mono
.To Reproduce
Try to use any of the mentioned fonts with
lazygit
in Console.Expected behavior
Should look something like this:
Version info:
lazygit --version
Tried
and
git --version
Additional context
Can't reproduce in WezTerm, so it's related to Console somehow.
The text was updated successfully, but these errors were encountered: