Skip to content

Commit

Permalink
Fix kitty fonts
Browse files Browse the repository at this point in the history
Hoo boy, a few unrelated fixes are in this simple change. First, remove
the italic and bold italic fallback to Menlo (since inconsolata doesn't
have italic support). In practice I never saw this - my vim colorscheme
was not setting italics for treesitter comments until
tinted-theming/tinted-vim#84. Once that issue
was solved, I unexpectedly started seeing line height conflicts due to
my terminal's Menlo fallback (https://xkcd.com/1172/).

I don't actually want italics in vim, so I'll just remove this fallback
in my kitty config instead.

Secondly, use inconsolata nerd font in kitty. I thought I was happy with
kitty's fallback to symbols-nerd-font to get symbols for NvimTree, but
this caused another size conflict.

Finally, don't specify regular/bold/etc, let kitty figure that out. I
confirmed with `kitty --debug-font-fallback` that its falling back on
regular for italics.
  • Loading branch information
craigfurman committed Oct 4, 2024
1 parent 91225c4 commit eaf97fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/home/.config/kitty/kitty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
#: individual font faces and even specify special fonts for particular
#: characters.

font_family Inconsolata Regular
bold_font Inconsolata Bold
italic_font Menlo Italic
bold_italic_font Menlo Bold Italic
font_family Inconsolata Nerd Font Mono
bold_font Inconsolata Nerd Font Mono
italic_font Inconsolata Nerd Font Mono
bold_italic_font Inconsolata Nerd Font Mono

#: You can specify different fonts for the bold/italic/bold-italic
#: variants. The easiest way to select fonts is to run the `kitten
Expand Down

0 comments on commit eaf97fc

Please sign in to comment.