Skip to content

instructions for non patched fonts? #124

Closed

Description

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.

Activity

  1. ryanoasis commented on Nov 20, 2015

    @ryanoasis
    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.

  2. beanaroo commented on Mar 2, 2016

    @beanaroo
    Contributor

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

  3. ryanoasis commented on Mar 2, 2016

    @ryanoasis
    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.

  4. ryanoasis commented on May 2, 2017

    @ryanoasis
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions