Skip to content

Wrong glyphs get displayed on some window sizes #8848

Description

@Joshix-1

Describe the bug
It should display *️⃣ always correctly as emoji. But sometimes with weird window sizes it doesn't.

To Reproduce
Steps to reproduce the behavior:
0. Resize window to some weird sizes

  1. Run: for _ in $(seq 1000) ; do printf '*\xef\xb8\x8f\xe2\x83\xa3'; done
  2. See normal stars instead of the emoji

Screenshots

Image

with kitty --config NONE

Image

Environment details

kitty 0.42.2 created by Kovid Goyal
Linux box 6.16.0-rc7-1-mainline #27 SMP PREEMPT_RT Tue, 22 Jul 2025 18:05:32 +0000 x86_64
Arch Linux 6.16.0-rc7-1-mainline (/dev/tty)

�[?12l�[?25h�[?12l�[?25h�[?12l�[?25h�[?12l�[?25h�[?12l�[?25h�[?12h�[?25h�[?12h�[?25h�[?12h�[?25h�[?12h�[?25hDISTRIB_ID="Arch"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="Arch Linux"
Running under: X11
OpenGL: '4.6 (Core Profile) Mesa 25.1.6-arch1.1' Detected version: 4.6
Frozen: False
Fonts:
  medium: FiraCodeNFM-Reg: /usr/share/fonts/TTF/FiraCodeNerdFontMono-Regular.ttf:0
          Features: ()
    bold: FiraCodeNFM-SemBd: /usr/share/fonts/TTF/FiraCodeNerdFontMono-SemiBold.ttf:0
          Features: ()
  italic: FiraCodeNFM-Ret: /usr/share/fonts/TTF/FiraCodeNerdFontMono-Retina.ttf:0
          Features: ()
      bi: FiraCodeNFM-SemBd: /usr/share/fonts/TTF/FiraCodeNerdFontMono-SemiBold.ttf:0
          Features: ()
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /home/josh/.local/bin/shell.sh
System color scheme: dark. Applied color theme type: none
Loaded config files:
  /home/josh/.config/kitty/kitty.conf

Config options different from defaults:
allow_hyperlinks              3
disable_ligatures             1
editor                        nano
font_family                   FiraCode Nerd Font Mono
font_size                     13.0
force_ltr                     True
pointer_shape_when_dragging   ('beam', 'beam')
repaint_delay                 8
scrollback_lines              100000
scrollback_pager_history_size 4294967295
shell_integration             frozenset({'disabled'})
Added shortcuts:
	shift+end →  scroll_end
	shift+home →  scroll_home
	shift+page_down →  scroll_page_down
	shift+page_up →  scroll_page_up

Important environment variables seen by the kitty process:
	PATH                                /home/josh/.local/bin:/home/josh/.cargo/bin:/opt/servo:/home/josh/.local/bin:/home/josh/.cargo/bin:/opt/servo:/home/josh/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/bin
	LANG                                en_DK.utf8
	SHELL                               /home/josh/.local/bin/shell.sh
	DISPLAY                             :0.0
	USER                                josh
	LC_TIME                             en_DK.utf8
	XDG_SEAT                            seat0
	XDG_SESSION_TYPE                    tty
	XDG_CACHE_HOME                      /home/josh/.cache
	LC_CTYPE                            de_DE.utf8
	LC_MONETARY                         de_DE.utf8
	XDG_SESSION_CLASS                   user
	XDG_SESSION_ID                      46
	LC_COLLATE                          de_DE.utf8
	XDG_RUNTIME_DIR                     /run/user/1000
	LC_ADDRESS                          de_DE.utf8
	XDG_MENU_PREFIX                     xfce-
	LC_TELEPHONE                        de_DE.utf8
	XDG_CURRENT_DESKTOP                 XFCE
	XDG_CONFIG_HOME                     /home/josh/.config
	LC_MESSAGES                         en_DK.utf8
	LC_NAME                             de_DE.utf8
	LC_MEASUREMENT                      de_DE.utf8
	LC_IDENTIFICATION                   de_DE.utf8
	XDG_VTNR                            1
	LC_ALL                              
	XDG_DATA_DIRS                       /usr/local/share:/usr/share
	XDG_CONFIG_DIRS                     /etc/xdg
	LC_NUMERIC                          de_DE.utf8
	LC_PAPER                            de_DE.utf8

Additional context
window size:

  Width: 769
  Height: 534

(breaks also with other window sizes, but I don't really see a pattern)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions