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

Broken Icons on Windows #121

Closed
0xvividmirage opened this issue Oct 14, 2019 · 14 comments
Closed

Broken Icons on Windows #121

0xvividmirage opened this issue Oct 14, 2019 · 14 comments

Comments

@0xvividmirage
Copy link

0xvividmirage commented Oct 14, 2019

I used scoop (https://scoop.sh/) to intall Emacs on Windows and then I installed Centaur-Emacs's "emacs.d". I notice that I cannot get the icons to display under Windows. I tried manually installing the fonts as was stated. Do you have any idea why my icons are broken? I am installing this on a non-admin account at work. Could that be an issue?

Here is what I am seeing:
image

UPDATE
Although icons are still not showing correctly, some icons show now that I added these lines:

(set-language-environment "UTF-8")
(set-default-coding-systems 'utf-8)

image

Any ideas how I can fix this?

@seagle0128
Copy link
Owner

seagle0128 commented Oct 16, 2019

Did you run M-x all-the-icons-install-fonts and install all-the-icons manually. I believe you need admin privilege to install the fonts.

@0xvividmirage
Copy link
Author

Yes, I have run that command and have manually installed the fonts that were downloaded which includes "all-the-icons.ttf". At my job, I am allowed to install fonts without admin priviledges. I think this is normally not allowed in Windows though. I was probably given special access to be able to do this because I install fonts often due to the nature of my work.

Now I think the issue may be that Centaur Emacs requires admin in order to use/execute the fonts that are installed. Do you have any ideas for a workaround?

@seagle0128
Copy link
Owner

seagle0128 commented Oct 16, 2019

I don't think Centaur Emacs changes the font behaviors of vanilla Emacs. Please check if all-the-icons are displayed in Emacs (From menu, Options-> Set default Font...). And don't add any other personal customizations about fonts.

BTW, which version of Emacs are you using?

@0xvividmirage
Copy link
Author

0xvividmirage commented Oct 16, 2019

all-the-icons is in the list of Emacs fonts:
image

I'm using Emacs 26.3 installed via Scoop on Windows 10.

@seagle0128
Copy link
Owner

I have no idea :(

I am not using scoop and Windows. But it was working well on Windows 7 and 10, with GNU Emacs which I downloaded from the official website.

@0xvividmirage
Copy link
Author

0xvividmirage commented Oct 16, 2019

I downloaded the portable Windows version of Emacs 26.3 from the official site just now and ran it and I still encounter the same issue, where some icons are still broken.

@seagle0128
Copy link
Owner

seagle0128 commented Oct 16, 2019

Try M-x all-the-icons-insert-octicon, and check mark-github and tools icons.

NOTE: please remove all of your private configurations.

@0xvividmirage
Copy link
Author

0xvividmirage commented Oct 16, 2019

I see this is intended to insert an icon manually. They still don't show up. They still appear broken.

local configurations are removed.

@seagle0128
Copy link
Owner

Did you install octicon font correctly?

@shanyouli
Copy link

Maybe you should install the symbola font, because it may be that your current default font does not contain the required glyph, and Emacs does not find the glyph you really need when searching for this character in other fonts.
For more details, please read Emacs-fonts-and-fontsets
PS:I used to use the glyph problem before, and I clearly installed the font correctly, but I can't display the glyph correctly. Then I installed the symbola font to solve it.

@seagle0128
Copy link
Owner

Thanks for the information, @shanyouli !

@0xvividmirage
Copy link
Author

0xvividmirage commented Oct 17, 2019

@shanyouli thank you! Symbola fixed it for me!
image
However, if "Symbola" is required for icons to not be broken on Windows 10, I think it would be a good idea to change the font requirements for Windows users to match a free software license. Here is the license for Symbola. Also, there was the issue where I had to enable UTF-8 support.

@rkalyankumar
Copy link

Head to https://github.com/domtronn/all-the-icons.el/tree/master/fonts and download all the ttf font files and right click each of the files downloaded and choose install for all users & restart your emacs.

@seagle0128
Copy link
Owner

Now using M-x centaur-install-fonts will install the necessary fonts automatically.

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

No branches or pull requests

4 participants