yatli / fvim

Cross platform Neovim front-end UI, built with F# + Avalonia
MIT License
1.34k stars 30 forks source link

Lines between powerline characters #72

Closed Kethku closed 4 years ago

Kethku commented 5 years ago

image

Win 10 nvim v0.4.0

Setting: if exists('g:fvim_loaded') FVimFontAntialias v:true FVimFontAutohint v:true FVimFontSubpixel v:true FVimFontLcdRender v:true FVimFontHintLevel 'full' FVimFontAutoSnap v:true endif

yatli commented 5 years ago

This is a known issue. Try turn off LcdRender (which actually means sub-pixel rendering)?

Kethku commented 5 years ago

This fixed the lines on the left hand sides, but they still show up on the right.

image

Maybe this is a problem with my particular font? I'm using fira code v2

yatli commented 5 years ago

Possible cause: the font is wider than the powerline glyphs, and the symbols are not properly aligned to the edges.

I also see similar artifacts on various fonts, some better some worse.

yatli commented 5 years ago

The line artifacts have background color (strange colors if subpixel), so I'm pretty sure that moving the glyph a little bit will do the trick. But we have to find a universal heuristic to handle left and right.

I already have code to tell if a glyph is a powerline symbol :)

yatli commented 4 years ago

Tracking: #103