Coder Social home page Coder Social logo

Comments (11)

unclechu avatar unclechu commented on August 15, 2024 2

@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.

christopher-l avatar christopher-l commented on August 15, 2024 1

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.

unclechu avatar unclechu commented on August 15, 2024 1

@mcepl You could look at how I personally do it: https://github.com/unclechu/neovimrc/blob/fd9160e34206bbc637de130f3a41d759942dd38c/ginit.vim#L12-L68

from neovim-gtk.

daa84 avatar daa84 commented on August 15, 2024

No, such method does not exists,
but it is possible to implement

from neovim-gtk.

unclechu avatar unclechu commented on August 15, 2024

@daa84 this would be cool, to be able to control increasing/decreasing font-size from vim-code for example.

from neovim-gtk.

daa84 avatar daa84 commented on August 15, 2024

what good solution here? how rpc api can look like? add command for increase/decrease font size or return font description?

from neovim-gtk.

hasufell avatar hasufell commented on August 15, 2024

g:GuiLoaded should probably be implemented for neovim-gtk too

from neovim-gtk.

mcepl avatar mcepl commented on August 15, 2024

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.

daa84 avatar daa84 commented on August 15, 2024

looks like it possible to use guifont within option_set event

from neovim-gtk.

mcepl avatar mcepl commented on August 15, 2024

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.

daa84 avatar daa84 commented on August 15, 2024

no it is not implemented, this mean that it is easily can be implemented πŸ˜„

from neovim-gtk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.