Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Nerd font icon #231

Closed
inflation opened this issue Oct 26, 2021 · 10 comments
Closed

Missing Nerd font icon #231

inflation opened this issue Oct 26, 2021 · 10 comments

Comments

@inflation
Copy link

Screen Shot 2021-10-26 at 2 41 25 PM

Screen Shot 2021-10-26 at 2 41 35 PM

Former is the Hack font with Nerd icons.

@fabrizioschiavi
Copy link
Owner

Thanks!

@inflation
Copy link
Author

inflation commented Nov 3, 2021

Another one (Rust icon):
CleanShot 2021-11-03 at 09 09 41@2x
Screen Shot 2021-11-03 at 9 09 30 AM

image

@inflation
Copy link
Author

Wrong icon:
image
image

@vricop
Copy link

vricop commented Sep 24, 2022

Missing icons. It looks like there are quite a few icons missing. I think the missing icons are the ones from https://microsoft.github.io/vscode-codicons/dist/codicon.html, the VSCode icons, NerdFonts come with them, but if search for them in the help files (All_chars.rtf) I can't seem to find any. That's why they're not rendering in my Neovim editor.

If you use the search cheat sheet from Nordfonts you'll see they're all there, icons like interface, symbol_numeric, array, enum, etc. All the symbol types in a programming language.

Can you fix it please?

Thanks in advance. Great font, astonishing work, keep it up.

image

@fabrizioschiavi
Copy link
Owner

Thanks @vricop to help me in fixing this situation!

@vricop
Copy link

vricop commented Sep 26, 2022

More on missing NerdFont glyphs

I've been making some tests in order to figure out what's going on with the missing icons. First of all here's a screenshot of DankMono, a premium font that I bought not long ago:

DankMono Nerd Font

This is my vim configuration for using codeicons in DankMono*

On the left you can see all the codicons (VSCode icons) that I'm using. This overwrites CMP default icons. On the right —the floating window— the default icons configured in CMP —an autocomplete plugin for VIM. As you can see this plugin is already using the codeicons glyphs from NerdFont, the floating window is telling us that is using either one glyph or another ("A" | "B").

*DankMono won't bring some NerdFont icons, so I patched it using the Font Patcher Script found in https://www.nerdfonts.com/.

Here's how it's rendering with PragmataPro (regular):

PragmataPro:

PragmataPro

PragmataPro Liga:

PragmataPro Liga

PgramataPro Mono Liga

PragmataPro Mono Liga

It could be something to do the way you patched PragmataPro, here are the options that I've used to patch DankMono with the Font Patcher Script:

./FontPatcher/font-patcher DankMono-Regular.otf -l -c --careful -ext otf
  • -c, --complete Add all available Glyphs
  • -l, --adjust-line-height Whether to adjust line heights (attempt to center powerline separators more evenly)
  • --careful Do not overwrite existing glyphs if detected
  • ext [EXTENSION], --extension [EXTENSION] Change font file type to create (e.g., ttf, otf)

You can see all the available options in the NerdFont page at the bottom of the home page.

DankMono is showing all the available glyphs just fine. Maybe there's another option so that glyphs can be also centered horizontally. I still need to figure that out, but with those options is working pretty good already.

@vricop
Copy link

vricop commented Sep 27, 2022

Temporary fix for those with missing icons

I've just got it working! I've tried patching PragmataPro Liga with NerdFont Patcher and I've got it right in the second try with these flags (options):

./FontPatcher/font-patcher PragmataProR_liga_0829.ttf -l -c -ext otf

Note: there's no --careful flag, which means it'll overwrite existing glyphs

image

@catesandrew
Copy link

@vricop thanks but looks like we wont have to overwrite the glyphs soon with this comment making reference to a fix being available soon?

@vricop
Copy link

vricop commented Dec 3, 2022

That's good news! Thanks to let me know. In the meanwhile I'll use my patched version. @fabrizioschiavi do you notify buyers everytime you make an update? I'm planning to buy the bold version in Christmas.

Buon Natale e prossimo anno nuovo!

@fabrizioschiavi
Copy link
Owner

Fixed in version .830
Please re-download the font files from fsd.it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants