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

Warning: Cannot find any of the specified fonts (Linux) #8829

Closed
jtruchan opened this issue Apr 29, 2017 · 6 comments
Closed

Warning: Cannot find any of the specified fonts (Linux) #8829

jtruchan opened this issue Apr 29, 2017 · 6 comments

Comments

@jtruchan
Copy link

I have seen a few similar issues reported but I could not find a solution. Spacemacs starts with the following warning: Cannot find any of the specified fonts (Source Code Pro)! Font settings may not be correct. Source Code Pro font is installed on the system:

$ fc-list | grep 'Source Code Pro'
~/.fonts/adobe-fonts/source-code-pro/TTF/SourceCodePro-Light.ttf: Source Code Pro,Source Code Pro Light:style=Light,Regular
~/.fonts/adobe-fonts/source-code-pro/TTF/SourceCodePro-Regular.ttf: Source Code Pro:style=Regular
~/.fonts/adobe-fonts/source-code-pro/TTF/SourceCodePro-Bold.ttf: Source Code Pro:style=Bold

My font config:

dotspacemacs-default-font '("Source Code Pro"
                               :size 13
                               :weight normal
                               :width normal
                               :powerline-scale 1.1)

My OS is OpenMandriva Lx 3.01. Emacs 24.5.1, Spacemacs 0.200.9. How can I make Spacemacs see the font?

@duianto
Copy link
Collaborator

duianto commented Apr 30, 2017

Did you rebuild the font cache?

I think i only ran the command: sudo fc-cache
in ubuntu 16.10, but some suggestions here:

Add font installation instructions for Linux
adobe-fonts/source-code-pro#17

show the command as: sudo fc-cache -f -v

@jtruchan
Copy link
Author

I ran sudo fc-cache -f -v ~/.fonts/adobe-fonts/source-code-pro and sudo fc-cache -f -v /usr/share/fonts/TTF/ but it did not help.

@duianto
Copy link
Collaborator

duianto commented Apr 30, 2017

I installed OpenMandriva Lx 3.01 in virtual box on windows 10. And I'm getting the same results, Spacemacs can't find the fonts.

These instructions might be useful:
https://doc.openmandriva.org/OpenMandriva-Lx-2014#add-fonts-special-71

The system updates are taking a while, and I don't want to try it at the same time. But i can try them when the updates are done.

@duianto
Copy link
Collaborator

duianto commented May 1, 2017

I couldn't get it to work by following those instructions either.

This issue:
Can't find Source Code Pro fonts..... #7340
Might have a clue to why it isn't working. There it's suggested that Emacs might not have been built with font support.

The Emacs version I installed was 24.5.1, from the Application Launcher (bottom left button) > Configure Your Computer > Software Management > Install & Remove Software.

The next thing you could try is to compile Emacs with font support.

@jtruchan
Copy link
Author

jtruchan commented May 1, 2017

I think that the problem is indeed that the OpenMandriva package of Emacs has been built without font support. I followed the same steps on Kubuntu and it worked fine. I will close this issue as it is probably related to the system.

@jtruchan jtruchan closed this as completed May 1, 2017
@costis-t
Copy link

costis-t commented Sep 27, 2019

For future reference, only. Yes, emacs needs to be built with xft " Build with support for XFT font renderer (x11-libs/libXft)" support.

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

3 participants