Closed arafatamim closed 2 years ago
First off, thanks for the PR! I am a little confused as to why this is happening. The neovide commit is a little different since it was using the average character width which could be affected by double-width characters/nerd font characters. I used "W" since it is the widest character in most fonts, is that not the case for Jetbrains Mono? Also if it is monospace then all characters should have the same width..
Ok I opened up nvui today and the JetBrains issue no longer occurs. No idea why. Looks like I was too quick to open this PR, so I'm closing this as it's no longer relevant.
Fixes font display quirks and inconsistencies.
Examples
Font: JetBrains Mono, height 11 Before: (The letter "m" looks squished and hard to discern) With this PR:
Font: JetBrainsMono Nerd Font, height 11 Before: (Some letters, like 'e', 't', 'i', 'p' have relatively shorter heights) With this PR:
Inspired by this neovide commit.