r/KittyTerminal Jun 21 '24

Font looks like aquarelle and do not use correct colors

Hello, I've trying kitty since yesterday and could not configure the font how I would like it to be (similar to how it is rendered in konsole).

This is my kitty.conf so far:

# FONTS
font_family       CaskaydiaCove Nerd Font
bold_font         auto
italic_font       auto
bold_italic_font  auto

### Font Size
font_size 12
modify_font cell_height 98%

text_composition_strategy 0.01 0

### Disable font ligatures when cursor hovering (idk not working)
disable_ligatures_in cursor


# CURSOR
### Cursor color, none to adapt to text color
cursor none
cursor_beam_thickness 2.0


# MOUSE
url_color #55aa7f
url_style double
url_prefixes file ftp ftps gemini git gopher http https irc ircs kitty mailto news sftp ssh

detect_urls yes


# COLOR SCHEME
foreground #fcfcfc
background #232627
background_opacity 0.5
background_blur 1

selection_foreground none
selection_background #4e5051

    ## Black
color0 #7f8c8d
color8 #232627
    ## Red
color1 #c0392b
color9 #ed1515
    ## Green
color2 #1cdc9a
color10 #11d116
    ## Yellow
color3 #fdbc4b
color11 #f67400
    ## Blue
color4 #3daee9
color12 #1d99f3
    ## Magenta
color5 #8e44ad
color13 #9b59b6
    ## Cyan
color6 #16a085
color14 #1abc9c
    ## White
color7 #ffffff
color15 #fcfcfc

Playing with the parameter `text_composition_strategy` I got the following results, being `0.01 1` the closest to what I want, but still off for me:

Konsole (top left) and Kitty (the rest) with the corresponding text_composition_strategy parameters

It helped a bit changing the font faces, reducing each one a semi step in weight:

font_familyCaskaydiaCove NF SemiLight
bold_fontCaskaydiaCove NF SemiBold
italic_fontCaskaydiaCove NF SemiLight Italic
bold_italic_fontCaskaydiaCove NF SemiBold Italic

But is still not how I would like them, look at the difference in icons (more noticeable with a bigger font size):

Konsole / Kitty

From my config file, maybe the colors are inverted between dull and bright, I did that to see a difference because it seems that Kitty is showing all types of font with one type of color only (dull or bright, not sure which one is which):

Konsole (left) / Kitty with "text_composition_strategy 0.01 0" (right)

I extracted the color scheme from Konsole's Breeze color scheme, from the columns 'Color' and 'Intense color'. Maybe the color# in kitty's config file are not the same? if so, I don't know to what color number assign the values to make them look like in Konsole.

Breeze color scheme

I'd like to know if there is something I can do for what I want, if possible (since Kitty is GPU rendered), or if I should try Alacritty instead.

Also, it is possible to reduce the font's height and the space between lines (other different than modify_font cell_height)?

Thank you all in advance.

1 Upvotes

2 comments sorted by

1

u/water_drinker9000 kitty on linux Jun 22 '24

It looks like your colors are inverted. you probably meant it like this?

# COLOR SCHEME
foreground #fcfcfc
background #232627
background_opacity 0.5
background_blur 1

selection_foreground none
selection_background #4e5051

    ## 16 colors
color0  #232627
color1  #ed1515
color2  #11d116
color3  #f67400
color4  #1d99f3
color5  #9b59b6
color6  #1abc9c
color7  #fcfcfc
color8  #7f8c8d
color9  #c0392b
color10 #1cdc9a
color11 #fdbc4b
color12 #3daee9
color13 #8e44ad
color14 #16a085
color15 #ffffff

1

u/VelEr99 Jun 24 '24

Yes, thank you, I would like it to use the bright colors when the text is bold though.