kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.11k stars 972 forks source link

Font stretches when resizing #5616

Closed AlessandroZanatta closed 1 year ago

AlessandroZanatta commented 1 year ago

Describe the bug The font appears to stretch for a brief moment when resizing a kitty instance.

This looks to be related to some change introduced in v0.26.4. Downgrading to v0.26.3 solves the issue.

To Reproduce

Screenshots Here's a link to a video showcasing the problem. I've slowed it down to .25x as on recording it was hard to see. Hope this is a better description of the problem than the one I'm able to give.

Environment details

kitty 0.26.4 created by Kovid Goyal
Linux zeus 6.0.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 15 Oct 2022 14:00:49 +0000 x86_64
Arch Linux 6.0.2-arch1-1 (/dev/tty)

DISTRIB_ID="Arch"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="Arch Linux"
Running under: X11
Frozen: False
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /bin/zsh
Loaded config files:
  /home/kalex/.config/kitty/kitty.conf

Config options different from defaults:
active_border_color     None
allow_remote_control    yes
background_opacity      0.95
confirm_os_window_close 0
disable_ligatures       1
enable_audio_bell       False
font_family             FiraCode NerdFont
font_size               10.0
italic_font             Fira Mono
modify_font:
    baseline 0
    cell_height 0
    cell_width 0
remember_window_size    False
tab_bar_style           powerline
update_check_interval   24.0
url_style               1
window_border_width     (0, 'pt')
window_padding_width    FloatEdges(left=5.0, top=5.0, right=5.0, bottom=5.0)
Added mouse actions:
    ctrl+left click ungrabbed →  mouse_handle_click selection link prompt
Removed mouse actions:
    left click ungrabbed →  mouse_handle_click selection link prompt
Added shortcuts:
    alt+super+page_down →  scroll_line_down
    alt+super+page_up →  scroll_line_up
    ctrl+super+space →  kitten unicode_input
    shift+super+- →  change_font_size all -2.0
    shift+super+= →  change_font_size all +2.0
    super++ →  change_font_size all +2.0
    super+, →  edit_config_file
    super+- →  change_font_size all -2.0
    super+0 →  change_font_size all 0
    super+= →  change_font_size all +2.0
    super+down →  scroll_line_down
    super+up →  scroll_line_up
Changed shortcuts:
    kitty_mod+enter →  new_os_window_with_cwd
Colors:
    background              #202020   
    color0                  #151515   
    color1                  #ac4142   
    color10                 #7e8d50   
    color11                 #e5b566   
    color12                 #6c99ba   
    color13                 #9e4e85   
    color14                 #7dd5cf   
    color15                 #f5f5f5   
    color2                  #7e8d50   
    color3                  #e5b566   
    color4                  #6c99ba   
    color5                  #9e4e85   
    color6                  #7dd5cf   
    color7                  #d0d0d0   
    color8                  #505050   
    color9                  #ac4142   
    cursor                  #d0d0d0   
    foreground              #d0d0d0   
    selection_background    #303030   
    selection_foreground    #202020   

Important environment variables seen by the kitty process:
    PATH                                /home/kalex/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/home/kalex/.dotnet/tools:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
    LANG                                en_US.UTF-8
    SHELL                               /bin/zsh
    DISPLAY                             :0
    USER                                kalex
    XDG_SESSION_PATH                    /org/freedesktop/DisplayManager/Session0
    XDG_SEAT                            seat0
    XDG_SESSION_DESKTOP                 xmonad
    XDG_SESSION_TYPE                    x11
    XDG_GREETER_DATA_DIR                /var/lib/lightdm-data/kalex
    XDG_SEAT_PATH                       /org/freedesktop/DisplayManager/Seat0
    XDG_SESSION_CLASS                   user
    XDG_VTNR                            7
    XDG_SESSION_ID                      5
    XDG_RUNTIME_DIR                     /run/user/1000

Additional context Running kitty with kitty --config NONE also presents the same issue.

kovidgoyal commented 1 year ago

dup of #5601

AlessandroZanatta commented 1 year ago

Guess I didn't search hard enough. Sorry about the dup!