yamatsum / nonicons

A next-generation icon set for developers that extends octicons.
MIT License
174 stars 8 forks source link

fix/icon alignment #11

Closed kabouzeid closed 2 years ago

kabouzeid commented 3 years ago

The problems

  1. icons were aligned to far at the top
  2. octicons weren't aligned correctly because they had different sizes (not all of them were 16x16)

What I've done

Result

It looks much better now. Icons are finally aligned in neovim 😍

yamatsum commented 3 years ago

Thanks for the great suggestions! I verified it step by step and adopted oslllo-svg-fixer because it worked well. At the same time, it also supports the latest version of octicons.

But I have one question, "descent" doesn't seem to work well Is there any concrete example?

kabouzeid commented 3 years ago

Look at the circle with the cross in the bottom right for comparison.

descent=40

descent_40

no descent

no_descent

You can try it yourself with eg :lua print(require'nvim-nonicons'.get('info') .. ' 2') in neovim to see that the icons are not aligned with the text

kabouzeid commented 3 years ago

macOS 11.2.3, kitty 0.20.3

nonicon_fonts.zip

yamatsum commented 3 years ago

Is it possible to display correctly with the font generated using descent using the current master? As far as I try, it's crumbled before and after use

kabouzeid commented 3 years ago

No, you need descent and replace the octicons with the original 16x16 versions.

This PR contains an updated package.json, .fantasticon.rc.js and the original octicons.

kabouzeid commented 2 years ago

You’ve seem to have fixed it. Thanks :)