Giter Club home page Giter Club logo

Comments (11)

glacambre avatar glacambre commented on July 23, 2024 9

You can now set font sizes with :set guifont=monospace:h10. Read :h E244 and 135c77c in order to know more and feel free to ask questions if things don't go as you expect them to :)

Edit: I'll try to push a new release in the coming week.

from firenvim.

glacambre avatar glacambre commented on July 23, 2024 4

Currently firenvim uses the browser's default font size. I have a branch on my computer that lets users set their preferred fonts with guifont (it's a branch that will fix #102 too) but I'm experiencing a small issue with automatically resizing the frame when the font size changes. It should be ready soon though.

from firenvim.

glacambre avatar glacambre commented on July 23, 2024 4

I released a new version for both chrome and firefox. Upgrade to firenvim 0.1.11 and use :h guifont to be able to change your font and its size.

from firenvim.

BlueDrink9 avatar BlueDrink9 commented on July 23, 2024

Adoring this extension, but the font for me is absolutely tiny. Would love to see this fixed soon.

from firenvim.

glacambre avatar glacambre commented on July 23, 2024

@justinmk is there a standard way to define font sizes? From reading :h E244 I'm unsure whether having a colon-separated list is specific to windows/osx's GVIM or if every GUI should support that.

from firenvim.

justinmk avatar justinmk commented on July 23, 2024

is there a standard way to define font sizes? From reading :h E244 I'm unsure whether having a colon-separated list is specific to windows/osx's GVIM or if every GUI should support that.

@glacambre Vim never expected GUI extensions, so this is untrodden territory :)

I would suggest conforming to the colon convention unless there's some reason not to. Unfortunately the option_set UI event doesn't parse the 'guifont' setting, so each UI has to parse the value...

from firenvim.

Asheq avatar Asheq commented on July 23, 2024

@glacambre This works if I set guifont inside an existing firenvim text area, but it does not work if I put the line in my vimrc; firenvim will still start up with a tiny font. Any idea what is going on?

Version info:

  • NVIM v0.4.2
  • Firenvim 0.1.11 (Chrome)

PS: This extension is amazing. I'm looking forward to using it everywhere! Keep up the great work.

from firenvim.

glacambre avatar glacambre commented on July 23, 2024

@Asheq What does set guifont print right after starting neovim? Does this issue still happen if you empty your init.vim except for the guifont line?

from firenvim.

Asheq avatar Asheq commented on July 23, 2024

It prints guifont=Iosevka:h12

I changed my init.vim to contain nothing but the following:

set guifont=Iosevka:h12
call plug#begin('~/.vim/plugged')
set guifont=Iosevka:h12
Plug 'glacambre/firenvim'
set guifont=Iosevka:h12
call plug#end() " Automatically executes 'filetype plugin indent on' and 'syntax enable'.
set guifont=Iosevka:h12

As you can see, I tried setting guifont in various locations, and none of them work. Only when I type it in manually in the command-line after the firenvim instance starts does it work:

Untitled

from firenvim.

alerque avatar alerque commented on July 23, 2024

@Asheq You need to actually use the code that is in the README for setting the configuration on startup. You need to set the values in function that gets fired on the UIEnter event and checks for Firenvim.

function! OnUIEnter(event)
	let l:ui = nvim_get_chan_info(a:event.chan)
	if has_key(l:ui, 'client') && has_key(l:ui.client, 'name')
		if l:ui.client.name ==# 'Firenvim'
			set guifont=Iosevka:h12
		endif
	endif
endfunction
autocmd QueInit UIEnter * call OnUIEnter(deepcopy(v:event))

That should work (at the end of your init.vim somewhere after plugins are loaded.

from firenvim.

Asheq avatar Asheq commented on July 23, 2024

Thanks @alerque. That works for me. Based on the fact that @glacambre created #214, it appears that he agrees that guifont should not have to be set in an autocommand, at least in the long-term. For now, I'm happy with this solution!

from firenvim.

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.