fabrizioschiavi/pragmatapro

Missing Nerd font icon

inflation opened this issue · 10 comments

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.

Thanks!

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

image

Wrong icon:
image
image

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

Thanks @vricop to help me in fixing this situation!

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.

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

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

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!

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