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

instructions for non patched fonts? #124

Closed
ghost opened this issue Nov 14, 2015 · 5 comments
Closed

instructions for non patched fonts? #124

ghost opened this issue Nov 14, 2015 · 5 comments

Comments

@ghost
Copy link

ghost commented Nov 14, 2015

I'm not really aware of the performance or any other implications for this, but this does seem to be a valid way of using the devicons and powerline fonts without patching.

cat $HOME/.config/fontconfig/fonts.conf
<?xml version="1.0"?>                                                                                                                  
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">                                                                                               
<fontconfig>                                                                                                                           
    <alias>                                                                                                                            
        <family>Inconsolata-dz</family>                                                                                                
        <prefer>                                                                                                                       
            <family>PowerlineSymbols</family>                                                                                          
            <family>icomoon</family>                                                                                                  
        </prefer>                                                                                                                      
    </alias>                                                                                                                           
    <alias>                                                                                                                            
        <family>Source Code Pro</family>                                                                                               
        <prefer>                                                                                                                       
            <family>PowerlineSymbols</family>                                                                                          
            <family>icomoon</family>                                                                                                   
        </prefer>                                                                                                                      
    </alias>                                                                                                                           
</fontconfig>

NOTE: devicons shows up as icomoon

If anybody has any reasons why it's a bad idea, then let me know.

@ryanoasis
Copy link
Owner

Thanks! I really haven't had a chance to look into this but I will. I remember reading something about it in the powerline repo. From what i understand it is not a 100% compatible solution but seems to work in most cases.

@beanaroo
Copy link
Contributor

beanaroo commented Mar 2, 2016

This works on Vte terminals (gnome-terminal, sakura, termite etc.) but terminals like urxvt and Xterm seem to only load one font.

@ryanoasis
Copy link
Owner

@beanaroo Thanks that makes sense. I haven't really followed up on this 😊 . It is marked as a future item for now at least.

@ghost
Copy link
Author

ghost commented Mar 2, 2016

i'm suprised it doen't work in any that relies on fontconfig, but I did find out there's no equivalent technique on mac osx (outside of an X instance)

@ryanoasis
Copy link
Owner

ryanoasis commented May 2, 2017

There is now a fontconfig available for Nerd Fonts: 10-nerd-font-symbols.conf

I am considering this issue now closed, thanks @jrobeson and @beanaroo 😄


edit: Also added this to the wiki: FAQ & Troubleshooting > fonts 😉

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

2 participants