2

I installed recently the patched fonts for Powerline users from the github repository on a centOS6.6 box.

As indicated in the docs I executed the script that ran ok and printed

[statquant@latitude fonts]$ ./install.sh 
Copying fonts...
Resetting font cache, this may take a moment...
All Powerline fonts installed to /home/statquant/.local/share/fonts

And indeed:

[statquant@latitude fonts]$ tree /home/statquant/.local/share/fonts
/home/statquant/.local/share/fonts
├── Anonymice\ Powerline\ Bold\ Italic.ttf
├── Anonymice\ Powerline\ Bold.ttf
├── Anonymice\ Powerline\ Italic.ttf
├── Anonymice\ Powerline.ttf
...

But for some reason gvim is not picking up those fonts, as it the context menu Edit > select font... I have no trace on any *Powerline font.

Any help appreciated

statquant
  • 13,672
  • 21
  • 91
  • 162

2 Answers2

2

I solved it, Looking in cat /etc/fonts/fonts.conf I could see

<dir>/usr/share/fonts</dir>                                                                     
<dir>/usr/share/X11/fonts/Type1</dir> 
<dir>/usr/share/X11/fonts/TTF</dir> 
<dir>/usr/local/share/fonts</dir>
<dir>~/.fonts</dir>                                                                             

Then I created a symlink ln -s ~/.local/share/fonts/ ~/.fonts

statquant
  • 13,672
  • 21
  • 91
  • 162
2

when adding fonts, one should put those fonts in the directory that fontconfig will scan. run fc-list to list available fonts.

the fontconfig user's guide

zzn
  • 2,376
  • 16
  • 30
  • while you're at it I appears I have to change my terminal font from `~/.Xresources` I am using `terminal` (`xfce`), any idea what I need to put in this file to get a powerline font ? – statquant Aug 05 '16 at 06:42
  • Damn, so now I have it working on `gvim` but not vim, looks like it has to do with the terminal setup `terminal 0.4.7 xfce terminal emulator` – statquant Aug 05 '16 at 07:01
  • know little about xfce terminal, in GNOME Terminal, font can be modified by Editing Profile. – zzn Aug 05 '16 at 08:49
  • I think xfce terminal and gnome terminal are the same... almost. So there is a profile, `Edit>Preference>Appearance` but then the newly installed fonts are NOT in the list. Though I know it is there because when I open `gvim` I can see those fonts and can change them – statquant Aug 05 '16 at 09:20
  • run `fc-cache -f -v` to update font cache, if still not work, restart terminal emulator. – zzn Aug 05 '16 at 09:27
  • you mean start a new terminal? or restart the desktop environment? It clearly did something as I see it printed "loaded 86 new fonts from my local dir", by they are still not in the terminal drop list choice menu – statquant Aug 05 '16 at 09:41
  • start a new terminal – zzn Aug 05 '16 at 09:42
  • This is crazy, `xfce` (the desktop) now sees the font, I can change all icon/window/... to use the new font... BUT when I start a terminal I cannot change the font within the terminal !! How sick is that ? – statquant Aug 05 '16 at 09:45
  • restart terminal emulator should work. So the last advice, logout then login. – zzn Aug 05 '16 at 09:53