alacritty: Some icons won't show up in alacritty
No matter the Nerd Font I use, alacritty won’t display all icons as expected (see the rust icon for example). I’ve searched for a workaround but could not find a solution.
The image below showcases the expected output (gnome-terminal) vs the actual output (alacritty).
Alacritty was built with cargo build --release.
System
OS: Linux Ubuntu 22.04.4 LTS Version: alacritty 0.14.0-dev (0d4ab7bc) Linux/BSD: Wayland, DE GNOME 42.9, WM Mutter
Logs
Created log file at "/tmp/Alacritty-31151.log"
[0.000002460s] [INFO ] [alacritty] Welcome to Alacritty
[0.000321247s] [INFO ] [alacritty] Version 0.14.0-dev (0d4ab7bc)
[0.000395572s] [INFO ] [alacritty] Running on Wayland
[0.001075335s] [INFO ] [alacritty] Configuration files loaded from:
"/home/me/.config/alacritty/alacritty.toml"
"/home/me/.config/alacritty/themes/active.toml"
[0.044519308s] [INFO ] [alacritty] Using EGL 1.5
[0.044575125s] [DEBUG] [alacritty] Picked GL Config:
buffer_type: Some(Rgb { r_size: 8, g_size: 8, b_size: 8 })
alpha_size: 8
num_samples: 0
hardware_accelerated: true
supports_transparency: Some(true)
config_api: Api(OPENGL | GLES1 | GLES2 | GLES3)
srgb_capable: true
[0.068867557s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Medium, load_flags: LoadFlag(TARGET_LIGHT), render_mode: "Normal", lcd_filter: 1 }
[0.075480574s] [INFO ] [alacritty] Window scale factor: 1
[0.076599622s] [DEBUG] [alacritty] Loading "JetBrainsMono Nerd Font" font
[0.079169091s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regular, load_flags: LoadFlag(TARGET_LIGHT), render_mode: "Normal", lcd_filter: 1 }
[0.082563979s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold, load_flags: LoadFlag(TARGET_LIGHT), render_mode: "Normal", lcd_filter: 1 }
[0.086269530s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Italic, load_flags: LoadFlag(TARGET_LIGHT), render_mode: "Normal", lcd_filter: 1 }
[0.090242614s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Bold Italic, load_flags: LoadFlag(TARGET_LIGHT), render_mode: "Normal", lcd_filter: 1 }
[0.101110778s] [INFO ] [alacritty] Running on Mesa Intel(R) UHD Graphics 630 (CFL GT2)
[0.101151115s] [INFO ] [alacritty] OpenGL version 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2, shader_version 4.60
[0.101169865s] [INFO ] [alacritty] Using OpenGL 3.3 renderer
[0.109217004s] [DEBUG] [alacritty] Enabled debug logging for OpenGL
[0.109366423s] [DEBUG] [alacritty] Filling glyph cache with common glyphs
[0.123436940s] [INFO ] [alacritty] Cell size: 10 x 24
[0.123491626s] [INFO ] [alacritty] Padding: 0 x 0
[0.123499931s] [INFO ] [alacritty] Width: 1000, Height: 600
[0.123531128s] [INFO ] [alacritty] PTY dimensions: 25 x 100
[0.125809035s] [INFO ] [alacritty] Initialisation complete
[0.234256833s] [DEBUG] [crossfont] Loaded Face Face { ft_face: Font Face: Regular, load_flags: LoadFlag(MONOCHROME | TARGET_MONO | COLOR), render_mode: "Mono", lcd_filter: 1 }
[4.498652398s] [INFO ] [alacritty] Goodbye
Deleted log file at "/tmp/Alacritty-31151.log"
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 12
- Comments: 32 (9 by maintainers)
I detached at #a77f77c and the icons are working as expected. I’ll be using that version for now.
I just updated to v 0.14.0 and icons that were showing aren’t showing anymore. Anybody else have this issue?
FYI, just installed alacritty from the current master following the install instructions and the emojis are working for me!
cc: @arthurazs, @metaldrummer610
Note: it wasn’t working for me on the
0.14.0release (from snap store) on Ubuntu 24.04.1.Hi, I’m also on master and have encountered this problem when using Alacritty on Fedora.
Some extra information:
fastfetchto view the system info, it shows me that the terminal font isalacrittyfont, even though I specify in the config file to use JetBrains Monoalacritty -vvv, I notice some log lines withGot font path=xxx index=0. Does this mean that the font is missing some glyph?An alternative solution is to build the latest FreeType manually and use it only for Alacritty:
and then compile Alacritty with:
PKG_CONFIG_PATH=/home/user/freetype/lib/pkgconfig cargo build --release.Finally, run the binary with
LD_LIBRARY_PATH=/home/user/freetype/lib alacritty.I pulled the latest code earlier this week and this problem still exists. I rolled back to #a77f77c as @arthurazs had mentioned and that worked for me.
I’m also experiencing what I believe is the same issue, the emojis instead of being rendered in color are “stylized” and in black and white:
On Fedora 42 using version 0.15.1 of Alacritty from the official Fedora repositories installed via dnf.
I repeated the same test on the same file with other terminal emulators: Ghostty, Kitty, Ptyxis, WezTerm, and all of them seem to render the emojis in color, just like Gnome Terminal, like this:
I am having partial luck with getting emojis to work in Alacritty. I’ve removed my Alacritty config and all nerd & emoji fonts and custom fontconfig configs from my system. I then reinstalled
fontconfigand installed thenoto-fonts-emojipackage and now apps like Chrome now show all expected emojis, e.g.:Using Terminator the above emojis work just fine:
In Alacritty 0.15.1 some emojis are not working, while others are:
I’ve also tried, to no effect:
I also had the same problem and rolled back to #a77f77c as @arthurazs had mentioned and that worked for me.
I am on Ubuntu 22.04