Fonts are a mess: Troubleshooting Wiki #1600
Replies: 6 comments 5 replies
-
Post your contributions below! |
Beta Was this translation helpful? Give feedback.
-
On pop_OS 20.04 (an Ubuntu 20.04 derivative), I had to do the following:
replacing In case your fontconfig is empty, an example of a full fontconfig can be found at https://github.com/AndydeCleyre/dotfiles/blob/master/.config/fontconfig/fonts.conf I did not need to reboot, re-login, or run any commands afterwards. Simply closing and reopening the terminal application (Konsole) caused emojis to display correctly. |
Beta Was this translation helpful? Give feedback.
-
On Archlinux (using zsh), If you don't get the snake by sending $ echo -e "\xf0\x9f\x90\x8d" Install For icons just install a nerd fond as specified in documentation. If using alacritty, one needs to change the # ~/.config/alacritty/alacritty.yml
font:
normal:
family: Source Code Pro
bold:
family: Fira Code Nerd Font # mostly for cool icons in prompt
style: Bold
italic:
family: Source Code Pro
style: Italic
size: 12.0
offset:
x: 0
y: 0
glyph_offset:
x: 0
y: 0
use_thin_strokes: true Is enough. |
Beta Was this translation helpful? Give feedback.
-
OS: Solution: Prior to this I had nerd-fonts installed, configured gnome-terminal to use them, verified that they were configured in gnome-settings...nada. After installing the Note: starship works fine on another Debian machine without this package installed. No idea why, so take this FWIW. Update: It seems that any symbolic font may work. I found that |
Beta Was this translation helpful? Give feedback.
-
Arch Linux, many terminals (see end for exceptions): I can make this work without needing a patched font in any application that respects freetype rendering by doing the following:
The above image is taken with zero patched Nerd Fonts installed on the system. Now for the bad news: this is only really going to work for applications that use the native fallback mechanism. Most VTE terminals (gnome-terminal, konsole, etc) work with this, as do WezTerm and Yakuake. Emulators like Alacritty and Kitty that focus on speed might not respect this mechanism by default because it slows down the render process (see this for how to do it in Kitty), and IDEs like VSCode and JetBrains don't appear to use this at all, even when the I suspect this will work on most modern Linux systems, but the names of the packages and fonts might be slightly different. |
Beta Was this translation helpful? Give feedback.
-
An additional note: as we expand our catalogue of unicode characters, simply having emoji fonts may not be sufficient for displaying symbols. For example, the Julia glyph comes from Tamil and you will need to have Tamil support to see it. As far as I know, the symbol is supported natively on MacOS and Windows--Linux users may need to install additional language fonts. |
Beta Was this translation helpful? Give feedback.
-
We've had a steady trickle of issues with emojis and powerline symbols not being visible for just about as long as I can remember. There's a pretty simple explanation for this: Unicode is a mess, and fonts aren't that much better.
While we already have an FAQ entry on this subject, it turns out that, depending on several factors, the steps there are still not sufficient to get emoji to render in a terminal. I figured that instead of cluttering up the FAQ with lots of extra instructions per-platform, it'd be better to have an outstanding thread where users can share what configurations worked for them, or any additional insight/discoveries about how fonts are selected on various systems.
If you're posting a font solution, please also post the OS/distro and version you obtained the results on!
Beta Was this translation helpful? Give feedback.
All reactions