TIL that you don't need to use patched fonts to display font awesome glyphs in terminal
Installing awesome-terminal-fonts not only installs font-awesome fonts, but also set the appropriate rules (/etc/fonts/conf.d/10-symbols.conf) to have the font engine(freetype2) use font-awesome as a fallback for glyphs not in the current font. Hence you get font awesome symbols for all fonts in terminal without having to resort to patched versions of your preferred font, like nerd fonts.
EDIT: Sorry guys, while it does work for font awesome symbols, it doesn't seem to work for powerline separator symbols. I don't know why.
Edited 1 Aug 2018. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 61 · 100% up
- Kind
- Text
- ID
- 93mlbf
14 comments
Or use fonts that have powerline glyphs out of the box, like https://be5invis.github.io/Iosevka/
:)
But patched fonts are way less hassle and even smaller in size.
But you have to patch it yourself or install through aur right ? This way can be done just with pacman -S
Better, find nerdfont, copy it to /usr/share/fonts and run "fc-cache -f -v"
I use one of the patched fonts from aur, and define it as fallback. I like fura code, since it also has ligatures for things that support it. You can define it per user on .config/fontconfig/fonts.conf
I just used otf version and it just works.
Do powerline symbols work as well ?
Yes, that's exactly my config :)
Would you share the details of the
/etc/fonts/conf.d/10-symbols.conf?https://github.com/gabrielelana/awesome-terminal-fonts/blob/master/config/10-symbols.conf
I would suggest doing this on a per-user basis by
.config/fontconfig/fonts.conf.It's great! Here is mine. This actually took a lot of my google-fu to figure out in the past.