centOS6.6安装powerline字体

Install powerline fonts on centOS6.6

我最近 the patched fonts for Powerline users 从 github 存储库安装在 centOS6.6 盒子上。

docs 中所示,我执行了 运行 好的脚本并打印了

[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

确实:

[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
...

但由于某些原因 gvim 没有选择这些字体,因为它是上下文菜单 Edit > select font... 我没有任何 *Powerline 字体的踪迹。

感谢任何帮助

我解决了, 看着 cat /etc/fonts/fonts.conf 我可以看到

<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>                                                                             

然后我创建了一个符号链接ln -s ~/.local/share/fonts/ ~/.fonts

添加字体时,应将这些字体放在fontconfig 将扫描的目录中。 运行 fc-list 列出可用字体。

the fontconfig user's guide