Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font Symbols Rendering Issue #7489

Closed
sujitawake opened this issue May 30, 2024 · 1 comment
Closed

Font Symbols Rendering Issue #7489

sujitawake opened this issue May 30, 2024 · 1 comment
Labels

Comments

@sujitawake
Copy link

Problem statement

I am experiencing an issue with font rendering in the Kitty terminal emulator. Certain symbols are not displaying correctly in Kitty, even though I am using the same font family "Maple Mono NF CN" as in Alacritty, where the symbols render as expected. The same issue persists even if I change the font family to any other ones e.g. Fira Code, JetBrainsMono Nerd Font Mono, etc. I have attached a screenshot for reference.

I'm not sure what could be causing Kitty to have trouble rendering these specific symbols. Is there some difference in how Kitty handles font rendering compared to Alacritty? Or are there additional Kitty configuration settings I need to use to get the font to display properly with all symbols?

Correct me if I am wrong, but my initial assumption says, it might be something to do with font.glyph_offset or font.offset properties. I tried searching for similar configurations for Kitty, but could not find anything.

Screenshot

Alacritty_Vs_Kitty

Environment details

kitty 0.35.0 (03aab9a88b) created by Kovid Goyal
Darwin SujitMBP.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:09:52 PDT 2024; root:xnu-10063.121.3~5/RELEASE_X86_64 x86_64
ProductName:		macOS ProductVersion:		14.5 BuildVersion:		23F79
OpenGL: '4.1 INTEL-22.5.11' Detected version: 4.1
Frozen: True
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
Loaded config files:
  /Users/sujit/.config/kitty/kitty.conf

Config options different from defaults:
active_border_color     None
bold_font               Maple Mono NF CN
bold_italic_font        Maple Mono NF CN
copy_on_select          clipboard
cursor_text_color       None
enable_audio_bell       False
font_family             Maple Mono NF CN
font_size               13.0
inactive_text_alpha     0.6
italic_font             Maple Mono NF CN
modify_font:
    cell_height 0
    cell_width 0
mouse_hide_wait         3.0
tab_bar_edge            1
tab_bar_style           separator
tab_separator            ┇┇ 
Added shortcuts:
	cmd+[ →  previous_window
	cmd+] →  next_window
	cmd+d →  new_window_with_cwd
	cmd+left →  send_text all \x01
	cmd+right →  send_text all \x05
	opt+left →  send_text all \x1b\x62
	opt+right →  send_text all \x1b\x66
Removed shortcuts:
	cmd+, →  edit_config_file
	cmd+h →  hide_macos_app
	cmd+m →  minimize_macos_window
	cmd+n →  new_os_window
	cmd+q →  quit
	cmd+w →  close_tab
	ctrl+cmd+, →  load_config_file
	ctrl+cmd+f →  toggle_fullscreen
	kitty_mod+t →  new_tab
	kitty_mod+w →  close_window
	opt+cmd+h →  hide_macos_other_apps
	opt+cmd+r →  clear_terminal reset active
	opt+cmd+s →  toggle_macos_secure_keyboard_entry
	shift+cmd+/ →  open_url https://sw.kovidgoyal.net/kitty/
	shift+cmd+[ →  previous_tab
	shift+cmd+] →  next_tab
	shift+cmd+d →  close_window
	shift+cmd+w →  close_os_window
Changed shortcuts:
	cmd+1 →  goto_tab 1
	cmd+2 →  goto_tab 2
	cmd+3 →  goto_tab 3
	cmd+4 →  goto_tab 4
	cmd+5 →  goto_tab 5
	cmd+6 →  goto_tab 6
	cmd+7 →  goto_tab 7
	cmd+8 →  goto_tab 8
	cmd+9 →  goto_tab 9
	cmd+k →  combine : clear_terminal scrollback active : send_text normal,application \x0c
	cmd+t →  new_tab_with_cwd
Colors:
	active_tab_background   #f8f8f2   
	active_tab_foreground   #282a36   
	background              #282a36   
	color0                  #21222c   
	color1                  #ff5555   
	color10                 #69ff94   
	color11                 #ffffa5   
	color12                 #d6acff   
	color13                 #ff92df   
	color14                 #a4ffff   
	color2                  #50fa7b   
	color3                  #f1fa8c   
	color4                  #bd93f9   
	color5                  #ff79c6   
	color6                  #8be9fd   
	color7                  #f8f8f2   
	color8                  #6272a4   
	color9                  #ff6e6e   
	cursor                  #f8f8f2   
	foreground              #f8f8f2   
	inactive_border_color   #6272a4   
	inactive_tab_background #6272a4   
	inactive_tab_foreground #282a36   
	mark1_background        #ff5555   
	mark1_foreground        #282a36   
	selection_background    #44475a   
	selection_foreground    #ffffff   
	url_color               #8be9fd   

Important environment variables seen by the kitty process:
	PATH                                /Applications/kitty.app/Contents/MacOS:/usr/bin:/bin:/usr/sbin:/sbin
	LANG                                en_US.UTF-8
	SHELL                               /bin/zsh
	USER                                sujit
@sujitawake sujitawake added the bug label May 30, 2024
@kovidgoyal
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants