nvim-tree / nvim-web-devicons

lua `fork` of vim-web-devicons for neovim
MIT License
2.05k stars 184 forks source link

Icons width is wrong for some icons #275

Closed nullwiz closed 1 year ago

nullwiz commented 1 year ago

I am having an issue where the width of some icons is wrong, for example, folders. I am using CaskaydiaCove Nerd Font Monospaced, but I also tried with other fonts with no luck. See the following example:

image

Steps to reproduce:

alex-courtis commented 1 year ago

I've seen that. I use hack.

For monospaced icons I need to use "Hack Nerd Font Mono" rather than "Hack Nerd Font".

See if you can find another variant of your font or try another font.

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    ....
    <alias>
        <family>monospace</family>
        <prefer>
            <family>Hack Nerd Font Mono</family>
        </prefer>
    </alias>
    ....
</fontconfig>
nullwiz commented 1 year ago

Fixed.

For anyone having a similar issue, what I did is to delete all profiles. For some reason, the windows terminal was not changing the font.

Solved it by deleting all profiles, creating a new one, and the font was properly changed.