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
54.52k stars 3.64k forks source link

Powerline glyphs have smaller height than the character box #843

Closed mux closed 1 year ago

mux commented 2 years ago

🗹 Requirements

I found a number of seemingly related issues but unless I missed something, none of them match my specific problem.

🎯 Subject of the issue

Experienced behavior: Some powerline glyphs seem to be smaller than the box height. This is most annoying with the arrow glyphs used to separate sections in vim-airline (both left and right). Additionally, the left arrows also show a one pixel vertical line with a darker color.

It seems to be related to the line spacing setting in the font selection window. It is 1 by default, and the issue is exacerbated if I increase it, and disappears if I set it down to about 0.8 (but then the window is nearly unreadable of course). The bigger the font, the more visible the problem is - I used 14pt in my screenshots.

It also seems to be an issue with the vertical lines characters used in the fortune chat bubble of vim-startify.

Expected behavior: I would expect those glyphs to align all the way to the top, but there is a visible gap there instead.

Example symbols:  and  (separation arrows) │ (maybe)

🔧 Your Setup

I tried many other Fira Code variants (Regular / Retina, Mono or not, otf / ttf) and they all show the same problem.

★ Screenshots (Optional)

Screen Shot 2022-06-11 at 11 13 32 AM Screen Shot 2022-06-11 at 11 34 27 AM Screen Shot 2022-06-11 at 11 20 13 AM

mux commented 2 years ago

The height issues don't happen with iTerm 2, without even using the built-in powerline glyphs. However the darker vertical lines after left arrows persists.

Finii commented 2 years ago

Downloaded from nerdfonts.com

A lot problems are solved in the 2.2.0 Release Candidate, so maybe you want to use https://github.com/ryanoasis/nerd-fonts/releases/tag/2.2.0-RC instead. That would be the powerline triangular things.

The gaps with the vertical bars ... hmm. It could be that out overlap causes that issue, need to examine that.

The faint vertical lines should be fixed with #780.

Finii commented 1 year ago

I believe this is the HHEA vs TYPO vs WIN problem. See

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference.