Comments (11)
@daa84 I don't personally need actual 'increase' or 'decrease' functions, I could easily implement them if I could just get current font-family and font-size. You could look on my implementation for neovim-qt, it's based on global variable g:GuiFont
.
from neovim-gtk.
Increasing/decreasing the font size from Vimscript is possible if you don't want to change the font of open vim instances. My ginit.vim does basically that.
Doesn't solve the initial problem, but working Ctrl
+ -
/ +
/ 0
is very satisfying. :)
from neovim-gtk.
@mcepl You could look at how I personally do it: https://github.com/unclechu/neovimrc/blob/fd9160e34206bbc637de130f3a41d759942dd38c/ginit.vim#L12-L68
from neovim-gtk.
No, such method does not exists,
but it is possible to implement
from neovim-gtk.
@daa84 this would be cool, to be able to control increasing/decreasing font-size from vim-code for example.
from neovim-gtk.
what good solution here? how rpc api can look like? add command for increase/decrease font size or return font description?
from neovim-gtk.
g:GuiLoaded
should probably be implemented for neovim-gtk too
from neovim-gtk.
Well, would it be possible to re-enable guifont
option? It works for gvim, but it seems a way more vim-nature, than weird call rpcnotify()
call (which would probably still be used in the background). Of course, it would be lovely if the option was bi-directional (so, reading the variable, so it would read the current information via mechanism discussed here).
from neovim-gtk.
looks like it possible to use guifont within option_set event
from neovim-gtk.
looks like it possible to use guifont within option_set event
I am sorry, could you show me some example how to use it? If I just run
:set guifont=Fira\ Code\ Medium\ 11
then the font used by the gui doesn't change (as it does with gvim).
from neovim-gtk.
no it is not implemented, this mean that it is easily can be implemented π
from neovim-gtk.
Related Issues (20)
- argc() not work in vimrc
- Add support to strikethrough text
- Underlines and undercurls are not rendered correctly
- Floating point issues cause gaps in background occasionally
- Characters aren't being drawn sometimes HOT 4
- Characters disappear when NERDTree pane opens HOT 5
- Chinese font width error
- Could not initialize nvim
- Character rendering broken with varying word lengths combined with wrapping HOT 7
- update wiki to include cursor blinking as an option HOT 1
- guisp ignored for underline
- Exits successfully with :cq
- Helping out with maintanence? HOT 10
- Artifact for Windows not Found HOT 1
- Improvement: Popup menu go below current line
- Impossible to install neovim-gtk on Ubuntu 22.04 (dependency problem with package 'fragile') HOT 2
- NGShowProjectView doesnβt do anything when NVIM_GTK_NO_HEADERBAR=1 HOT 1
- Feature request: open multiple tabs with -p
- Crash when trying to middle-click-paste if clipboard is empty
- Please create a way to send monetary contribution
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neovim-gtk.