-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
variable width, non-monospace fonts? #1065
Comments
Short answer: not really. Historically Vim assumes that fonts are fixed with - for various reasons. Visual block, the cursor and performance are the first ones that come to mind. The best we can do right now is to enable ligatures, using the You will also need to enable a variable width font, in our case using I've tried this here using DejaVu Serif and the results were pretty terrible. The cursor/text was not visible in some cases and moving the cursor around caused the text to move around.
Not quite sure what you mean with this. My assumption is that this depends on the terminal and the terminal font being used. I'm not aware of terminals doing variable width fonts though. Can you share the details about a setup were this was working properly with neovim (font, terminal program)? |
Hi, thanks for the response! neovim/neovim#22125 (comment) NeoVim core contributor saying that it's possible to render variable-width fonts in a NeoVim GUI. It would be sooo amazing to see a NeoVim GUI render variable-width fonts the way the Emacs GUI is capable of doing. I wouldn't expect this to fit within your priorities... but... oh my... I would be so thrilled if it did :D |
Ok, I got the gist of it from the comments. The way to enable this is to
The reason these are not supported right now is that it is a lot of work. I don't think we will get there anytime soon. Maybe one of the other UIs already covers all the needed features? These seem to support multigrid and ext widgets, but I have not checked their rendering
I only tried the first two, but even with multigrid on and a proper font rendering still assumes monospace. |
Thanks for the consideration! Neovide doesn't support it neovide/neovide#1757 yet, nor does fvim yatli/fvim#248. But I'll look into the others, thanks for the links. |
Thanks for the feature request! I've never thought about this case before. While this is theoretically possible -- It would require significant re-writes based on the architecture we're currently using. All of our rendering logic requires characters to be placed within a uniform grid. I don't think it is practical for us to add this feature. Hopefully another frontend can solve this for you! Marking as closed. |
Thanks for your consideration :) |
Does NeoVim-QT support "normal" variable width, non-monospace fonts?
I do lots of writing in nvim and it would be so amazing relief for my eyes to have a "normal" (normal for the world of typography) font.
NeoVim itself does support this (some mistaken impressions did exist about it not being possible) though apparently it's not necessarily simple to do.
Does NeoVim-QT support this currently? If not, is it something you'd be interested to add?
Thanks in advance!
The text was updated successfully, but these errors were encountered: