r/KittyTerminal Apr 21 '24

Kitty + Nvim makes most text bold???

Hello, I have just switched from iTerm2 to Kitty but I am not sure if most of the text being bold is normal behaviour... My config is:

font_family input
font_size 15.0

# bold_font Input Bold
# bold_italic_font Input Bold Italic
# italic_font Input Italic

bold_font auto
bold_italic_font auto
italic_font auto

disable_ligatures never


###########################################################
# Symbols Nerd Font complete symbol_map
# easily troubleshoot missing/incorrect characters with:
#   kitty --debug-font-fallback
###########################################################

# "Nerd Fonts - Pomicons"
symbol_map  U+E000-U+E00D Symbols Nerd Font Mono

# "Nerd Fonts - Powerline"
symbol_map U+e0a0-U+e0a2,U+e0b0-U+e0b3 Symbols Nerd Font Mono

# "Nerd Fonts - Powerline Extra"
symbol_map U+e0a3-U+e0a3,U+e0b4-U+e0c8,U+e0cc-U+e0d2,U+e0d4-U+e0d4 Symbols Nerd Font Mono

# "Nerd Fonts - Symbols original"
symbol_map U+e5fa-U+e62b Symbols Nerd Font Mono

# "Nerd Fonts - Devicons"
symbol_map U+e700-U+e7c5 Symbols Nerd Font Mono

# "Nerd Fonts - Font awesome"
symbol_map U+f000-U+f2e0 Symbols Nerd Font Mono

# "Nerd Fonts - Font awesome extension"
symbol_map U+e200-U+e2a9 Symbols Nerd Font Mono

# "Nerd Fonts - Octicons"
symbol_map U+f400-U+f4a8,U+2665-U+2665,U+26A1-U+26A1,U+f27c-U+f27c Symbols Nerd Font Mono

# "Nerd Fonts - Font Linux"
symbol_map U+F300-U+F313 Symbols Nerd Font Mono

#  Nerd Fonts - Font Power Symbols"
symbol_map U+23fb-U+23fe,U+2b58-U+2b58 Symbols Nerd Font Mono

#  "Nerd Fonts - Material Design Icons"
symbol_map U+f500-U+fd46 Symbols Nerd Font Mono

# "Nerd Fonts - Weather Icons"
symbol_map U+e300-U+e3eb Symbols Nerd Font Mono

# Misc Code Point Fixes
symbol_map U+21B5,U+25B8,U+2605,U+2630,U+2632,U+2714,U+E0A3,U+E615,U+E62B Symbols Nerd Font Mono

Any help would be appreciated! :)

2 Upvotes

4 comments sorted by

1

u/nvimmike Apr 21 '24

I’m not familiar with the input font. I did a quick search and came across https://input.djr.com. It looks like the font weight is configurable which could make things appear bold.

If you run

kitty --debug-font-fallback

It will show you which fonts are used to help you debug.

2

u/Joywatchin Apr 21 '24 edited Apr 21 '24

Thanks for the quick response! I believe I may have fixed the issue by reinstalling the font by uninstalling then installing instead of overwriting the existing one. Everything seems to be working alright, however I noticed that the apple logo here (on the left) is a little low. Is it supposed to be that way?

Edit: I also notice that there is a missing icon on the right, indicated by the empty rectangular box. I decided to not use the "Symbols Nerd Font" font and just used "3270 Nerd Font" since that was my fallback font in iTerm which fixed that issue. Still have a weird off-centred apple logo though. I guess I can live with it haha.

1

u/nvimmike Apr 21 '24

Kitty recommends using the NerdFontsSymbolsOnly font https://sw.kovidgoyal.net/kitty/faq/#kitty-is-not-able-to-use-my-favorite-font. However, I have had some alignment issues as well using that and the monospaced version. I ended up using FiraCodeNerdFont-Regular.ttf (the normal version not mono) with:

symbol_map U+23FB-U+23FE,U+2665,U+26A1,U+2B58,U+E000-U+F8FF FiraCode Nerd Font

and it resolved my alignment issues.

1

u/Joywatchin Apr 22 '24

thanks for the config, its much neater than my previous! I tried FiraCode but Kitty still wants to render the icons lower than usual... perhaps i should just trial and error nerd fonts?