nerd-fonts
nerd-fonts copied to clipboard
Icons suddenly shrunk with no changes to configs
🗹 Requirements
- [x] I have searched the issues for my issue and found nothing related and/or helpful
- [x] I have searched the FAQ for help
the section there did not apply to me, as the fonts were working and now they are not
- [x] I have searched the Wiki for help
🎯 Subject of the issue
Experienced behavior: For a few days, I noticed a strange issue with my Firefox icon in my sway-launcher-desktop, it changes when the cursor selects it (see video, it also shows the second issue). However, now many of the icons are shrunk in size with no changes in regards to my setup or updates. I tried reinstalling and rebuilding the font cache, but it didn't help. In addition, new entries in my history file have an extra space inbetween the default icon and the name of the application.
Expected behavior: Icons are not shrunk.
Example symbols: history file: 263 /usr/share/applications/discord-ptb.desktopdesktop Discord PTB 197 /usr/share/applications/librewolf.desktopdesktop LibreWolf 35 /usr/share/applications/syncthing-gtk.desktopdesktop Syncthing GTK 32 /usr/share/applications/libreoffice-startcenter.desktopdesktop LibreOffice 30 /usr/share/applications/obsidian.desktopdesktop Obsidian 14 /usr/share/applications/com.github.xournalpp.xournalpp.desktopdesktop Xournal++ 12 /usr/local/share/applications/anki.desktopdesktop Anki 11 /usr/share/applications/schildichat-desktop.desktopdesktop SchildiChat 6 /usr/share/applications/google-chrome.desktopdesktop Google Chrome 6 /usr/share/applications/codium-wayland.desktopdesktop VSCodium - Wayland 3 /usr/share/applications/nvim.desktopdesktop Neovim 2 /usr/share/applications/org.musicbrainz.Picard.desktopdesktop MusicBrainz Picard 2 /usr/share/applications/lmms.desktopdesktop LMMS 2 /usr/share/applications/audacity.desktopdesktop Audacity 1 /usr/share/applications/org.qbittorrent.qBittorrent.desktopdesktop qBittorrent 1 /usr/share/applications/gimp.desktopdesktop GNU Image Manipulation Program 1 /usr/share/applications/digilent.waveforms.desktopdesktop Digilent Waveforms 1 /home/jet/.local/share/applications/wine/Programs/LTspice/LTspice.desktopdesktop LTspice
🔧 Your Setup
- Which font are you using (e.g.
Anonymice Powerline Nerd Font Complete.ttf)?- /home/jet/.local/share/fonts/ArzteSans-MonoRoman.ttf: Ärzte Sans,Ärzte Sans Mono Roman:style=Mono Roman,Regular
- Where did you get the file from (download link, self patched, source downloaded from link...)
- I got the mono font from the Die Ärzte website, bademeister.com, but I've never had an issue with the icons before.
- Pacman repositories (ttf-nerd-fonts-symbols and ttf-nerd-fonts-symbols-common)
- Which terminal emulator are you using (e.g.
iterm2,urxvt,gnome,konsole)?- Kitty
- Are you using OS X, Linux or Windows? And which specific version or distribution?
- Arch Linux, SwayWM
★ Screenshots (Optional)
https://github.com/ryanoasis/nerd-fonts/assets/88674707/04a01696-a0a4-45de-94f3-7601b6b904cc
Hmm, it seems that all 'normal' icons are in the 4-hex-digits range while the small ones are in Fxxxx (5 digits) range:
Hmm, no, that is not entirely true. :thinking:
I'm not sure how your font setup is, but I guess you have this ArzteSans as selected font and get in the Nerd Fonts via fontfallback from SymbolsOnly, right?
From the screenshot with the fs-list output I see that you have installed both / maybe all,
Symbols 2048emandSymbols Only 1000em(a)Symbols Nerd Font CompleteandSymbols Nerd Font Complete Mono(b)
(a) You should settle on one of them. Usually 2048em. There can be no reason to have both installed that I can think of. I can not think of any reason to install the 1000em variant at all ;-D
(b)
The Nerd Font icons are wide, while the Nerd Font Mono icons are small.
If you do not specify the font to use fontconfig will choose any font for you that has the requested glyph. So it will be randomly select small or wide icons to replace missing-in-ArzteSans glyps.
Suggest: Remove the variant you do not want.
Please report back if removing 3 of the 4 Symbols Only fonts helps you ;-)
You can check which font can provide a concrete icon like this:
fc-list :charset=f066f (discord, "small" in your screenshot)
fc-list :charset=f268 (chrome, "big" in your screenshot)
The list should come up with just one (1) font or you will have an ambiguity when that icon is requested via fontfallback. And/or you need rules in your fontconfig, but people seldom have these.
Maybe look into https://github.com/kovidgoyal/kitty/issues/3591 (because you specify Kitty as your client)
Ah ok! I'm not at my computer right now, but I did remove some of those symbol fonts a few weeks ago (I was cleaning up fonts from when I was installing everything to see what it looked like lol). I did also notice that a few days ago many of the icons returned to normal. My other laptop doesn't seem to have this issue, so I'll check the font stuff and get back to you.
So I had only one of the symbol fonts, but I also found that I had the ttf-nerd-fonts-symbols package installed, so that is also probably another point of conflict.
This is what i had removed, so now i just have the Arch packages.
Closed due to inactivity.