Fonts 在centOS6.6上安装powerline字体

Fonts 在centOS6.6上安装powerline字体,fonts,centos6,vim-powerline,vim-airline,Fonts,Centos6,Vim Powerline,Vim Airline,我最近从github存储库安装在centOS6.6框中 <dir>/usr/share/fonts</dir> <dir>/usr/share/X11/fonts/Type1</dir> <dir>/usr/share/X11/fonts/TTF</dir> <dir>/u

我最近从github存储库安装在
centOS6.6
框中

<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>                                                                             
如图所示,我执行了运行ok并打印的脚本

[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
<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>                                                                             
事实上:

[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
...
<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>                                                                             
但是由于某种原因,
gvim
没有拾取这些字体,因为它在上下文菜单
Edit>select font…
中显示,我没有任何
*Powerline
字体的痕迹

<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>                                                                             
感谢任何帮助

我解决了它,
<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>                                                                             
在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>                                                                             
/usr/share/font
/usr/share/X11/font/Type1
/usr/share/X11/font/TTF
/usr/local/share/font
~/.字体

然后我创建了一个符号链接
ln-s~/.local/share/fonts/~/.fonts
添加字体时,应该将这些字体放在fontconfig将扫描的目录中。运行
fc list
列出可用字体

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

将/home/statquant/.local/share/font添加到字体搜索目录列表中。或者将这些ttf文件放入/usr/share/fonts中。如何将路径添加到搜索列表中?请尝试/etc/fonts/fonts.confI没有根访问权限当您使用时,我似乎必须将终端字体从
~/.Xresources
更改为
终端(
xfce
),你知道我需要在这个文件中输入什么才能得到一个电力线字体吗?该死,所以现在我用的是
gvim
而不是vim,看起来它与终端设置
terminal 0.4.7 xfce terminal emulator
不太了解xfce terminal,在GNOME terminal中,字体可以通过编辑配置文件来修改。我认为xfce终端和gnome终端是一样的。。。几乎。因此有一个配置文件,
Edit>Preference>Appearance
,但是新安装的字体不在列表中。虽然我知道它在那里,因为当我打开
gvim
时,我可以看到这些字体,并可以更改它们运行
fc cache-f-v
以更新字体缓存,如果仍然不工作,请重新启动终端模拟器。
<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>