我将i3wm与i3status栏结合使用。我的配置文件使用"FontAwesome 10“字体规范在条形图中显示各种图标。现在,一个新版本的字体太棒了已经面世。和前面一样,当我将图标复制到config-files中时,由于i3wm正在搜索旧版本的字体(4.7.0),所以无法识别它们。

我已经安装了新版本(5.7.2),但是i3wm没有使用它。我可以强制/指定i3使用特定的字体版本吗?多么?
发布于 2019-03-08 01:23:57
我不知道你在使用什么操作系统(我使用的是Ubuntu,目前是18.04),但是对于我来说,如果apt包还没有更新到最新的FontAwesome版本,我会从站点手动下载最新的软件包。
.otf文件保存在/usr/share/fonts/opentype/font-awesome/中.eot、.svg、.ttf、.woff、.woof2文件保存在/usr/share/fonts-font-awesome/fonts中确保用sudo fc-cache -f -v重新加载字体缓存。
顺便提一下,我还建议至少研究一下多杆。它非常灵活,并且与FontAwesome完美地工作在一起。我很久以前就从i3status酒吧搬来了。
发布于 2019-02-18 15:53:37
您可以在本地安装新版本的系统字体。下载新的字体版本并将其解压缩到~/.local/share/fonts/中。然后检查字体缓存是否更新:
$ fc-list |grep Awesome
/home/user/.local/share/fonts/Font Awesome 5 Free-Solid-900.otf: Font Awesome 5 Free,Font Awesome 5 Free Solid:style=Solid
/home/user/.local/share/fonts/Font Awesome 5 Free-Regular-400.otf: Font Awesome 5 Free,Font Awesome 5 Free Regular:style=Regular
/usr/share/fonts/opentype/font-awesome/FontAwesome.otf: FontAwesome:style=Regular
/usr/share/fonts/woff/font-awesome/fontawesome-webfont.woff: FontAwesome:style=Regular
/home/user/.local/share/fonts/Font Awesome 5 Brands-Regular-400.otf: Font Awesome 5 Brands,Font Awesome 5 Brands Regular:style=Regular
/usr/share/fonts/truetype/font-awesome/fontawesome-webfont.ttf: FontAwesome:style=Regular在此之后,您可能需要重新启动i3status。
https://unix.stackexchange.com/questions/500754
复制相似问题