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

xshell下vim-devicons不能正确显示图标 #35

Closed
HGtz2222 opened this issue Apr 23, 2018 · 4 comments
Closed

xshell下vim-devicons不能正确显示图标 #35

HGtz2222 opened this issue Apr 23, 2018 · 4 comments

Comments

@HGtz2222
Copy link

FAQ中关于xshell下使用vim-devicons不能显示图标问题是安装 DejaVuSansMono. 请问下这个字体是在windows下安装还是在Linux下安装, 需要修改其他额外的配置么?

目前在windows下和linux下安装都不生效. 球大佬解惑~~

环境:
Windows: Xshell5
Linux: Centos7 x86_64

@chxuan
Copy link
Owner

chxuan commented Apr 23, 2018

@HGtz2222 如果你想在xshell上面看到图标,就在windows上安装这个字体,链接里面找到windows对应的字体,安装好后,xshell设置成这个字体就可以了,如果你的是桌面版的系统,vimplus已经帮你安装了这个字体,你只需要在linux终端设置这个字体就可以了。

@HGtz2222
Copy link
Author

目前字体已经安装成功, 但是图标仍然不能正确显示.

@HGtz2222
Copy link
Author

问题解决了.
vim-devicons需要Nerd Font. 但是xshell只支持等宽字体, 因此Nerd Font中相当一部分字体安装后, xshell不能正确识别(例如FAQ中提到的DejaVuSansMono, 并不能被xshell识别).
目前粗略尝试了下, 以下几个Nerd Font字体是可以能够被xshell识别的.

https://github.com/artofrawr/powerline-fonts/tree/master/fonts/SFMono
https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible.otf
https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/3270/Medium/complete/3270-Medium%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible.otf
https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/AurulentSansMono/complete/AurulentSansMono-Regular%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible.otf

没有尝试更多的字体. 理论上来讲, 需要这个字体首先是 Nerd Font, 其次需要是等宽字体. 这样就能够在xshell正确显示图标.

@chxuan
Copy link
Owner

chxuan commented Apr 25, 2018

@HGtz2222 恩恩,但是我安装DejaVuSansMono就可以呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants