Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Octicons, Faicon aren't being displayed #91

Closed
mauriciocm9 opened this issue Dec 8, 2017 · 6 comments
Closed

Octicons, Faicon aren't being displayed #91

mauriciocm9 opened this issue Dec 8, 2017 · 6 comments

Comments

@mauriciocm9
Copy link

I don't know why these 2 icons cannot being displayed I leave a picture. I'm using windows 10 with emacs 25.3.1, I have installed the fonts in my computer.
all-the-icons

@wyuenho
Copy link
Collaborator

wyuenho commented Feb 23, 2019

I've just updated the README. Can you diagnose the problem according to this troubleshooting guide? Let me know if you still can't solve the problem.

Also checkout #106

@dgchurchill
Copy link

dgchurchill commented Mar 4, 2019

I hit a similar problem. I have Consolas set as my default font as per the line below. If I remove this setting from my init.el then the icons render correctly.

(set-face-font 'default "-*-Consolas-normal-normal-normal-*-14-*-*-*-m-0-iso10646-1")

Edit: This is with all-the-icons version 20190223.2143 and Emacs 26.1 on Windows 10.

@dgchurchill
Copy link

After following the troubleshooting guide I now have the following fix in my init.el:

(set-face-font 'default "-*-Consolas-normal-normal-normal-*-14-*-*-*-m-0-iso10646-1")

(let ((fontset (face-attribute 'default :fontset)))
  (set-fontset-font fontset '(?\xf000 . ?\xf2ff) "FontAwesome" nil 'append)
)

I can do the same to get the Octicon icon set working, but I can't get them both working at the same time as it seems that the codepoints used in these two sets overlap.

@dgchurchill
Copy link

So I've found a fix and it's as simple as changing the registry of my default font from iso10646 to iso8859. I don't really understand what this parameter does but it seems to work. Seems to be Windows specfic as on macOS I have the font set with the iso10646 registry without any problems.

In summary, changing the face config in my init.el from:

(set-face-font 'default "-*-Consolas-normal-normal-normal-*-14-*-*-*-m-0-iso10646-1")

to:

(set-face-font 'default "-*-Consolas-normal-normal-normal-*-14-*-*-*-m-0-iso8859-1")

fixed this issue for me.

It also works fine with the simpler form (set-face-font 'default "Consolas-11")

@wyuenho
Copy link
Collaborator

wyuenho commented Mar 20, 2019

changing the registry of my default font from iso10646 to iso8859. I don't really understand what this parameter does but it seems to work. Seems to be Windows specfic as on macOS I have the font set with the iso10646 registry without any problems.

Sounds like a bug you should report upstream. M-x report-emacs-bug is your friend.

@wyuenho wyuenho closed this as completed Mar 20, 2019
@jfmcbrayer
Copy link

It is fair to say this is an upstream bug, but it probably affects all Windows users, so it might be worth mentioning in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants