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

Feature Request - Allow swapping fonts using kitten #8227

Closed
BirbIrl opened this issue Jan 18, 2025 · 1 comment
Closed

Feature Request - Allow swapping fonts using kitten #8227

BirbIrl opened this issue Jan 18, 2025 · 1 comment

Comments

@BirbIrl
Copy link

BirbIrl commented Jan 18, 2025

Is your feature request related to a problem? Please describe.
Thanks to kitten @ set-font-sizei can change the size of my font in neovim depending on if i'm editing a markdown file or not. It'd be great if we could swap fonts via remote control as well!

Describe the solution you'd like
Being able to change the font family manually for kitty instance with kitten @ set-font-family would be much appreciated :D

Describe alternatives you've considered
Currently i think this is only possible via making a temporary config file and reloading it.

Additional context
Mentioning this cause i saw the changes regarding variable font sizes (#8226). Maybe this would also be a nice step towards variable fonts? Something to consider while implementing.
Setting up a neovim plugin to query different fonts for lualine and file contents would be sublime - but that's for the possible future. (and frankly, inserting font names in escape codes, plus the variable width of fonts sounds like a pain - but i'm mentioning this anyways!).

@kovidgoyal
Copy link
Owner

kovidgoyal commented Jan 19, 2025

kitten @ load-config -o font_family=whatever

Supporting different fonts is not going to happen because as you point
out they wont fit in the same cells. But see #8226 for a way to distinguish parts of a terminal UI based on font size.

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

No branches or pull requests

2 participants