Doom-emacs: all-the-icons broken

Created on 25 Jun 2018  路  19Comments  路  Source: hlissner/doom-emacs

I have used the M-X then input all-the-icons-install-fonts. Also I have install the all-the-icons by fc-cache-fv.
I eve rebuild the doom-emacs. But all above don't work. The icons are still broken.

external obsolete fonts packages resolved-elsewhere

Most helpful comment

BTW, I use archlinux.

All 19 comments

BTW, I use archlinux.

So you are saying you have icon fonts in ~/.local/share/fonts/ but Doom still shows you blank rectangles instead of icons?
I remember that installing ttf-all-the-icons from AUR caused me issues with overgrown icons, so I do it always via M-x all-the-icons, as I did few days ago on my Arch and it worked. Font cache is rebuild by all-the-icons command, so it should be sufficient to just restart emacs and icons should be applied.

Thx for your comment, I mean that I install the icons by M-x all-the-icons at the first time then it didn't work. And I reinstall the icons in the ~/.local/share/fonts/ but it didn't work neither.

I cannot reproduce this. I'm an Arch too. To clarify, you've run M-x all-the-icons-install-fonts, restarted Emacs, and no dice? Perhaps it's something to do with your Arch setup?

  1. Does fc-list list the all-the-icons fonts?
  2. Are you using infinality-bundle, by chance?

Thx for helping me. I will try it later.

[d011ar5@Retr0 ~]$ fc-list | grep all-the
/home/d011ar5/.local/share/fonts/all-the-icons.ttf: all\-the\-icons:style=Regular

I got this. Then the icon still can't work.

Odd. Nothing appears to be amiss. Are you using terminal emacs, by chance?

I have check terminal and applications both. BTW, I still not set the i3-wm, so I still use the xfce4.

Does (find-font (font-spec "github-octicons")) and (find-font (font-spec "all-the-icons")) work? (You can run them in M-x eval-expression)

It could be a malformed fontconfig, OS misbehavior (maybe xfce doesn't respect ~/.local/share/fonts), or perhaps I misunderstood what "broken" means to you. Do you have a screenshot?

works well on mac for me

All-the-icons used to work as intended for me up until yesterday when I finally rebooted my machine and now the fonts don't show up any more. The screenshot below should give you an indication:

screenshot at 2018-10-29 11-39-00

Running (find-font (font-spec :family "all-the-icons")) returns nil, but fc-list | grep all-the shows that it is installed in the ~/.local/share/fonts directory. I also tried running make update and bin/doom refresh but to no avail.

EDIT: I'm running Ubuntu Mate 18.04 and not Arch.

@siddharthshekar Did you do anything with system fonts between the period you had it working and rebooting? I dont see why else this would happen, looks like emacs is not picking up the font and is falling back to the wrong one. Also try refreshing font cache, fc-cache -r.

@JohnJohnstone I want to say that I didn't change anything with respect to the fonts since the last time I rebooted. However, since I reboot pretty infrequently, I can't say that with complete certainty. I tried fc-cache -r as you suggested, but no dice. What's weird is that I have the same version of Ubuntu Mate running in a VM at home and Doom works just fine there.

I went into ~/.local/share/fonts where all-the-icons-install-fonts seems to have installed the fonts for me, deleted the relevant .ttf files, updated using fc-cache and reran all-the-icons-install-fonts. Everything works properly now :+1:

Same problem here on Manjaro (Arch-based), tried deleting the font as suggested in the comment above but no success.
(find-font (font-spec "github-octicons")) returns (wrong-type-argument symbolp "all-the-icons")

I had the same problem checked the ~/.local/share/fonts folder and the files belong to all-the-icons were 0 bytes. I downloaded the files manually from Github everything is working fine now

I had the same problem checked the ~/.local/share/fonts folder and the files belong to all-the-icons were 0 bytes. I downloaded the files manually from Github everything is working fine now

This method is work. The fonts downloaded by the M-x all-the-icons-install-fonts command are zero bytes.

I reported this upstream, it's not really a problem with doom so it should be closed here.

A couple days ago a PR to fix all-the-icons-install-fonts was merged, which should resolve this issue. You can update your packages with bin/doom update. Let me know if that isn't the case and I'll reopen this.

Was this page helpful?
0 / 5 - 0 ratings