-
-
Notifications
You must be signed in to change notification settings - Fork 924
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
Issues rendering double width icons #3729
Comments
Hi @kovidgoyal, thanks for getting back to me so quickly. I have read that section of your website before, and the reason I created an issue is because the icons are not just small or truncated and they are followed by a space. I should have mentioned this in my initial post, but it appears when I insert a space after a character that can be double width the rightmost cell displays the portion of the resized icon that would appear in that cell, but the leftmost cell still shows the whole icon in single cell size instead of the resized portion of the icon. I have not had this issue with kitty before and I haven't changed the font files I'm using in a while, so I wondered if there was possibly a change on this end that might be causing the "half resized, half not resized" behavior. |
ah ok |
Also I thought I should add that I did have to edit my font config according to the FAQ section of the website in order for the font to be detected by kitty. Here's my <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="scan">
<test name="family">
<string>JetBrainsMono Nerd Font</string>
</test>
<edit name="spacing">
<int>100</int>
</edit>
</match>
</fontconfig> |
First thing you do is dont use a patched font. Just use plain jetbrains mono and install the nerd font separately kitty will automatically use the symbols from nerd font. Patching often breaks fonts. |
I tried plain JetBrains Mono with the symbols only nerd font and am still experiencing the issue. |
Post the output of --debug-font-fallback when running kitty and |
Here's the output although there is more than one symbol displayed. The last two lines are from
|
I am not able to replicate on Arch with kitty running from master with kitty --config=NONE -o 'font_family JetBrains Mono' -o 'symbol_map U+e5fe Symbols Nerd Font' --debug-font-fallback sh -c "printf '\ue5fe a'; read" The folder icon is correctly rendered, as expected, despite the space This is with the fonts: community/ttf-jetbrains-mono 2.225-1 |
Ok so that also displays normally for me, but what if you try pasting that character into the terminal and then adding a space after? That seems to be the case that consistently causes the issue for me. |
Like this? |
Yes that causes the issue for me |
OK, I'll take a look at it when I have a few minutes |
I just did a quick check and so far I have not been able to reproduce the issue with kitty release version 0.20.3 but I am able to reproduce it with release version 0.21.0. Hope that helps narrow it down at least a little bit. |
Describe the bug
As seen in the screenshot below I am experiencing sporadic rendering issues with double width icons. Sometimes certain icons render fine and others do not, but the next time I open kitty it might be the opposite in terms of which icons have issues but it only appears to affect icons that can be single or double width like those from patched Nerd Fonts.
To Reproduce
Steps to reproduce the behavior:
Screenshots
Environment details
Additional context
I am able to reproduce this issue with the default config but font set to JetBrainsMono Nerd Font.
The text was updated successfully, but these errors were encountered: