简体   繁体   English

gnome-terminal 上的修补电力线字体不起作用(archlinux + GNOME)

[英]patched powerline fonts on gnome-terminal not working (archlinux + GNOME)

I am facing a problem on my newly installed arch linux machine with GNOME - vim is unable to render powerline glyphs on the gnome-terminal.我在新安装的带有 GNOME 的 arch linux 机器上遇到了一个问题 - vim 无法在 gnome 终端上呈现电力线字形。 I have installed the patched fonts and changed the gnome-terminal preferences to use the powerline font.我已经安装了修补字体并更改了 gnome-terminal 首选项以使用电力线字体。 Also, I have installed powerline and powerline-fonts using pacman.另外,我已经使用 pacman 安装了 powerline 和 powerline-fonts。 I use vim-airline plugin with the setting "let g:airline_powerline_fonts = 1".我使用带有“let g:airline_powerline_fonts = 1”设置的vim-airline插件。 I tried different powerline fonts and none of them resolved the problem.我尝试了不同的电力线字体,但都没有解决问题。 pango-list command displays me all the powerline fonts too. pango-list 命令也向我显示所有电力线字体。 I have tried a lot of different variations to fix this problem but, I haven't been able to get anything to work.我已经尝试了很多不同的变体来解决这个问题,但是,我一直无法得到任何工作。 Any help would be highly appreciated.任何帮助将不胜感激。 在此处输入图片说明

It was a trivial issue with fonts.这是字体的一个小问题。 I had to install a relevant Nerd Font.我必须安装一个相关的书呆子字体。

Your terminal isn't showing few characters in the above screenshot Either fonts with those characters aren't installed or Encoding of terminal isn't set to UTF-8 You've installed glyphs, in that case, only option left is adding the following line in .vimrc您的终端在上面的屏幕截图中没有显示几个字符 未安装带有这些字符的字体或终端的编码未设置为 UTF-8 您已经安装了字形,在这种情况下,剩下的唯一选项是添加以下内容.vimrc 中的一行
set encoding=utf-8

You also need to confirm that terminal is configured to display UTF-8 encoding您还需要确认终端配置为显示 UTF-8 编码
Check the compatibility tab in gnome-terminal preferences检查 gnome-terminal 首选项中的兼容性选项卡图片

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM