Skip to content
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

guifont no effect #1648

Open
GNUqb114514 opened this issue Nov 16, 2024 · 1 comment
Open

guifont no effect #1648

GNUqb114514 opened this issue Nov 16, 2024 · 1 comment

Comments

@GNUqb114514
Copy link

GNUqb114514 commented Nov 16, 2024

  • OS Version: Arch Linux x86_64
  • Browser Version: Firefox 132.0.1
  • Browser Addon Version: 0.2.16
  • Neovim Plugin Version: commit 64f9389

What I tried to do

Change guifont:

return {
    { 'glacambre/firenvim', build = ":call firenvim#install(0)",
        lazy = false,
        config = function ()
            if vim.g.started_by_firenvim then
                vim.o.laststatus=0
                vim.opt.guifont='UbuntuMono Nerd Font Mono'
            end
        end
    },
}

What happened

The guifont was set correctly, but the font stay unchanged:
图片

P.S.

Here I'm fc-matching my font:

% fc-match "UbuntuMono Nerd Font Mono"
UbuntuMonoNerdFontMono-Regular.ttf: "UbuntuMono Nerd Font Mono" "Regular"

And its effect in Alacritty is:
图片

@theherk
Copy link

theherk commented Dec 19, 2024

Yeah, something is strange here. If I set the fonts manually and disable "Allow pages to choose their own fonts, instead of your selections above" I can set the font for instance. That isn't ideal though, because I just want to set the font of the neovim. I tried putting this in userContext.css.

textarea, textarea * {
  font-family: "VictorMono Nerd Font", "Victor Mono", monospace !important;
}

This does correctly set the font for the textarea, but this is not picked up by the instance of Neovim. Would be really nice to control the font in here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants