rainstormstudio / nerd-icons.el

GNU General Public License v3.0
206 stars 22 forks source link

The default nerd font (NFM.ttf) shipped with `nerd-icons` lacks some essential icons. #12

Closed milanglacier closed 1 year ago

milanglacier commented 1 year ago

The NFM.ttf shipped with nerd icons lacks some important file icons, for example: latex file icons:

example configuration:

(straight-use-package 'nerd-icons)
(straight-use-package 'nerd-icons-dired)

(add-hook 'dired-mode-hook #'nerd-icons-dired-mode)

this is the screenshot in GUI emacs that uses the NFM.ttf:

Screenshot 2023-04-30 at 00 46 11

this is the configuration that uses CaskaydiaCove Nerd Font that can display latex file icons successfully:

(use-package nerd-icons
    :init
    (setq nerd-icons-font-family "CaskaydiaCove Nerd Font"
          nerd-icons-fonts-subdirectory "/Users/northyear/Library/Fonts"))
Screenshot 2023-04-30 at 00 47 16

Besides, there are also some icons that NFM cannot display successfully: the icons that are displayed for the ~/Music folder, ~/Downloads folder, ~/Desktop folder, ~/Documents folder, and ~/Pictures folder

Update: This is not the problem of NFM.ttf. The NFM.ttf are not installed by default, this font should be manually installed by the user via (nerd-icons-install-fonts). Instead, the missed file icons are the font that I used (Liga SF Mono Nerd font) doesn't contain the icons.

Suggestion: add the troubleshooting section in the README that hints the user to call nerd-icons-install-fonts if some file icons the nerd font the user is using misses.