nerd-fonts icon indicating copy to clipboard operation
nerd-fonts copied to clipboard

Icons suddenly shrunk with no changes to configs

Open JetpackJackson opened this issue 2 years ago • 6 comments

🗹 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

fontsmall

JetpackJackson avatar Aug 27 '23 02:08 JetpackJackson

Hmm, it seems that all 'normal' icons are in the 4-hex-digits range while the small ones are in Fxxxx (5 digits) range:

image

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 2048em and Symbols Only 1000em (a)
  • Symbols Nerd Font Complete and Symbols 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 ;-)

Finii avatar Sep 26 '23 07:09 Finii

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.

Finii avatar Sep 26 '23 07:09 Finii

Maybe look into https://github.com/kovidgoyal/kitty/issues/3591 (because you specify Kitty as your client)

Finii avatar Sep 26 '23 07:09 Finii

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.

JetpackJackson avatar Sep 26 '23 15:09 JetpackJackson

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.

JetpackJackson avatar Sep 26 '23 15:09 JetpackJackson

swappy-20230926-115615 This is what i had removed, so now i just have the Arch packages.

JetpackJackson avatar Sep 26 '23 15:09 JetpackJackson

Closed due to inactivity.

Finii avatar Mar 16 '24 00:03 Finii