Skip to content

Aliasing artifacts in rounded corners rendering (rectangles and arrows) #8299

Description

@sullicsullic

Describe the bug
Great work, kitty is my favorite terminal.
When using Kitty terminal, I've noticed consistent rendering artifacts around rounded elements, specifically:
1- Rounded corners of rectangles appear jagged and unsmooth
2- Arrow components with rounded edges show similar aliasing issues
Hope to achieve smoother rendering for these rounded corners.

To Reproduce

  • Rounded corners in nvim cmd line
  • Arrows when error occurs

Screenshots
1-This is rounded corners
Image
2-This is rounded arrow
Image

Environment details

kitty 0.39.1 (93dc28aa78) created by Kovid Goyal
Darwin SullisBlackPearl.local 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec  6 19:04:03 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T8132 arm64
ProductName:		macOS ProductVersion:		15.2 BuildVersion:		24C101
OpenGL: '4.1 Metal - 89.3' Detected version: 4.1
Frozen: True
Fonts:
  medium: ComicCode-Regular: /Users/sullic/Library/Fonts/Comic Code.otf
          Features: ()
    bold: ComicCode-Bold: /Users/sullic/Library/Fonts/Comic Code Bold.otf
          Features: ()
  italic: ComicCode-Italic: /Users/sullic/Library/Fonts/Comic Code Italic.otf
          Features: ()
      bi: ComicCode-BoldItalic: /Users/sullic/Library/Fonts/Comic Code Bold Italic.otf
          Features: ()
Paths:
  kitty: /Applications/kitty.app/Contents/MacOS/kitty
  base dir: /Applications/kitty.app/Contents/Resources/kitty
  extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
  system shell: /bin/zsh
System color scheme: light. Applied color theme type: none
Loaded config files:
  /Users/sullic/.config/kitty/kitty.conf

Config options different from defaults:
bold_font                  Comic Code Bold
bold_italic_font           Comic Code Bold Italic
cursor_blink_interval      (0.5, kitty.options.utils.EasingFunction(), kitty.options.utils.EasingFunction())
cursor_shape               3
cursor_trail               1
cursor_underline_thickness 3.0
font_family                Comic Code
font_size                  16.0
italic_font                Comic Code Italic
scrollback_lines           200000
shell_integration          frozenset({'no-cursor'})
symbol_map:
	U+3400 - U+4dbf → Hannotate SC
	U+4e00 - U+9fff → Hannotate SC
	U+f900 - U+faff → Hannotate SC
	U+20000 - U+2a6df → Hannotate SC
	U+2a700 - U+2b73f → Hannotate SC
	U+2b740 - U+2b81f → Hannotate SC
	U+2b820 - U+2ceaf → Hannotate SC
Changed shortcuts:
	cmd+k →  clear_terminal_and_scrollback
	ctrl+cmd+, →  reload_config
	ctrl+cmd+l →  clear_screen
	opt+cmd+k →  clear_scrollback
	opt+cmd+r →  reset_terminal
	shift+cmd+/ →  open_kitty_website
Colors:
	background                 #fafafa   
	color1                     #ff3333   
	color10                    #b8e532   
	color11                    #ffc849   
	color12                    #73d7ff   
	color13                    #ffa3aa   
	color14                    #7ff0cb   
	color2                     #86b200   
	color3                     #f19618   
	color4                     #41a6d9   
	color5                     #f07078   
	color6                     #4cbe99   
	color7                     #ffffff   
	color8                     #323232   
	color9                     #ff6565   
	cursor                     #ff6900   
	foreground                 #5b6673   
	selection_background       #f0ede4   
	selection_foreground       #fafafa   

Important environment variables seen by the kitty process:
	PATH                                /Applications/kitty.app/Contents/MacOS:/usr/bin:/bin:/usr/sbin:/sbin
	LANG                                zh_CN.UTF-8
	SHELL                               /bin/zsh
	USER                                sullic

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions