rainstormstudio / nerd-icons.el

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

nerd-icons with Emacs in Terminal #86

Closed dr-scsi closed 6 days ago

dr-scsi commented 1 week ago

Many thanks for this package 🙏

I'm running the latest package (nerd-icons-20240524.311) from MELPA with Emacs 31.0.50 on macOS. The nerd-fonts are installed via homebrew and everything works fine with GUI-Emacs, but not in Terminal. These are 2 snapshots recorded with emacs -Q and emacs -nw -Q followed by eval'ing this in scratch:

(progn
  (package-initialize t)
  (package-activate 'nerd-icons))

Running M-x nerd-icons-insert-codicon TAB gives this for GUI:

emacs-gui

and this in Terminal:

emacs-terminal

Am I missing something? I thought nerd-icons would work in terminal.

seagle0128 commented 6 days ago

You should configure the terminal to display with nerd fonts.

dr-scsi commented 6 days ago

Thanks for your response. I use iTerm2 and had to tweak the Settings -> Profiles -> Text and check the box for Use a different font for non-ASCII text. But it is not really satisfactory; I have to play with Manage Special Exceptions, I guess. At any rate, I'm closing this report since it looks like a cockpit error; sorry for the noise.

seagle0128 commented 5 days ago

@dr-scsi I am using iTerm as well, with font-hack-nerd-font. It's working well.

dr-scsi commented 5 days ago

@seagle0128 - I'm using SourceCodePro (unpatched) and Symbols Nerd Fonts. I fixed the issue by adding the relevant character point ranges to the exception list under Settings -> Profiles -> Text which I picked up from this page.

seagle0128 commented 2 days ago

@dr-scsi FYI. This is mine

image
dr-scsi commented 2 days ago

@seagle0128 - This is my setup:

snapshot-1

I have this under Manage Special Exceptions:

snapshot-2

The entries look like this:

snapshot-3