twlz0ne / nerd-fonts.el

Emacs nerd-fonts (https://github.com/ryanoasis/nerd-fonts) utilities.
GNU General Public License v3.0
32 stars 5 forks source link

Helm is refusing to display NF icons #1

Open Syncriix opened 4 years ago

Syncriix commented 4 years ago

https://imgur.com/L7FRdYp

Hey @twlz0ne, nice package! I love it, somehow my Helm decided against that tough, as you can see in the screenshot above.

Funny thing is that some chinese symbols get displayed in the minibuffer, everything displays correctly in the main buffers.

I tried to find out how to change the helm font, seems like it uses the same default the buffer does. I have defined it as follows:

(set-default-font "FuraCode Nerd Font")
(require 'nerd-fonts)

Another funny thing is that (nerd-fonts "mdi-folder-star") actually inserts ﮛ instead of the star folder https://i.imgur.com/xKerLs9.png (screen in case of unicode fuckups) I am using Emacs 26.1

twlz0ne commented 4 years ago

I think you may not have set the unicode. Try the following code:

(set-fontset-font t 'unicode
                    (font-spec :family "FuraCode Nerd Font" :size 12) nil 'prepend)