ryanoasis / nerd-fonts

Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more
https://NerdFonts.com
Other
53.84k stars 3.63k forks source link

Some glyphs missing after v3.x.x update #1190

Closed luizkowalski closed 5 months ago

luizkowalski commented 1 year ago

🗹 Requirements

🎯 Subject of the issue

Experienced behavior: this morning I updated some deps on my computers and some fonts were updated as well but this is not a big deal since this has happened before, but after the update finished I noticed some icons on my neovim were wrong like the Gemfile icon and the X for closing a buffer:

image

This was weird so I decided to delete all custom fonts I had, clean up the cache, re-download them manually, and reinstall it. To my surprise, nothing has changed

No idea what is going on, this is my text configuration on iTerm2:

image

Neovim version:

:version
NVIM v0.9.0
Build type: Release
LuaJIT 2.1.0-beta3

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.0/share/nvim"

No Neovim config has been changed prior to today or after this.

Expected behavior: X and missing icons should exist

Example symbols:

🔧 Your Setup

One more screenshot from other missing icons

image

I guess it should've been the "unknown file" icon

cabiamdos commented 1 year ago

I have here a patch-solution that I have implemented (https://github.com/cabiamdos/nerd-fonts-fix). Hope it is useful. Basically I have remapped the available theme icons (unicodes) into the ones that are in the fonts provided into the repository.

jpcercal commented 1 year ago

I've been using nerdfonts with zsh + starship + iTerm2, thanks for the great work everyone!

nerdfix managed to solve the problem, I had only one file that had to be patched as it can be seen below.

./nerdfix fix ~/dotfiles/starship.toml:

# Auto fix it using last input '󰇁'
note: Found obsolete icon U+FA1E
    ┌─ /Users/jpcercal/dotfiles/starship.toml:128:12
    │
128 │ format = "[羽](bold cyan)[took $duration](bold cyan) [❯](dimmed white) "
    │            ^^ Icon 'nf-mdi-timer_sand' is marked as obsolete
    │
    = You could replace it with:
          1. 󰔟 U+F051F nf-md-timer_sand
          2. 󱦠 U+F19A0 nf-md-timer_sand_paused
          3. 󰞌 U+F078C nf-md-timer_sand_full
          4. 󰚭 U+F06AD nf-md-timer_sand_empty

> Input an icon: 󰔟
# Your input: 󰔟 nf-md-timer_sand
> Are your sure to write the patched content? all yes

The full file changes after the nerdfix command got executed can be found here: https://github.com/jpcercal/dotfiles/commit/23898f0a110e4fcbe79da574a1d78526063f15fb

Reference: https://github.com/loichyan/nerdfix

Thanks!

Finii commented 5 months ago

I guess we can close this issue now. It will still be pinned for some time.