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

Issue with rendering icons in KiTTY #584

Closed
ljramalho opened this issue Nov 18, 2021 · 4 comments
Closed

Issue with rendering icons in KiTTY #584

ljramalho opened this issue Nov 18, 2021 · 4 comments

Comments

@ljramalho
Copy link

ljramalho commented Nov 18, 2021

  • os: raspbian
  • lsd --version: lsd 0.20.1
  • echo $TERM: xterm-256color
  • echo $LS_COLORS:

I have lsd installed on my raspberry pi / raspbian. I access my Pi using KiTTY 0.76.0.1 (a PuTTY clone) for windows. On windows I have installed Hack Nerd font.

There are 4 file types for the Hack font, and depending on the one I have installed (mono or variable-pitch), and while the glyph letters are the same, the glyphs for the icons (like the "open folder" echo $'\uf115'), is either to small to be seen correctly:

Hack_Regular_Nerd_Font_Complete_Mono_Windows_Compatible.ttf (mono)
image

or with the required size but cut on both sides, as if the glyph is to large and then is only showed partially in the reserved "mono"/fixed spaced.

Hack_Regular_Nerd_Font_Complete_Windows_Compatible.ttf (variable-pitch).
image

Watching the example image from the lsd main page...
image

It seems you are not using the Hack nerd font (the zero in your image is slashed).
It seems you are using the font size 10, while I'm using font size 11 (but if I use font size 10 result is the same).
It seems your terminal displays the icon glyphs using the space of two characters (by watching the folder glyph under the lsd text.

Question;
1- What terminal emulator were you using when took the image? is it for windows, Linux or MacOS?
2- What font were you using when took the image?

3- Is there any solution for the icons problem in my system?

Thanks and sorry my lousy English

@zwpaper
Copy link
Member

zwpaper commented Nov 18, 2021

hi @ljramalho, thanks for trying lsd on raspbian, how the icon shown is not lsd can handle currently, so most of the display questions you mentioned should be some OS configuration questions.

for your questions, I can show you my screenshot:

image

  1. iTerm2 on macOS
  2. Hack Nerd Font
  3. Can you try using another terminal emulator? maybe there is something wrong related to KiTTY Can't use monospace Nerd Fonts kovidgoyal/kitty#527

@ljramalho
Copy link
Author

Thank you zwpaper for the quick reply.

It seems there is a problem on KiTTY / PuTTY terminal. There is an option to allow for variable pitch fonts selection, but they are rendered as monospaced, compressing or cutting the large width glyphs (like the "m") and showing a bigger space in narrow glyphs (like "l").

I asked in the "lsd" issues, if there is some option (hidden option) to render variable-pitch fonts. In fact it seems the letter glyphs in Hack nerd fonts (variable pitch variant) are monospaced anyway except for the added powerline glyphs, so if KiTTY / PuTTY could render variable pitch fonts correctly the letter characters should look good and the extra Powerline glyphs when used correctly should look like in your image example.

Thank you

@meain
Copy link
Member

meain commented Nov 19, 2021

Rendering is something that is fully handed by the terminal emulator. Nothing can be done by lsd there.
Also take a look at this issue: #331

@meain
Copy link
Member

meain commented Nov 24, 2021

Closing this as this is a terminal emulator specific issue.

@meain meain closed this as completed Nov 24, 2021
@meain meain changed the title Maybe not an issue. Issue with rendering icons in KiTTY Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants