kovidgoyal / kitty

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

Unicode characters render weirdly irrespective of font #7637

Closed TriDEntApollO closed 4 months ago

TriDEntApollO commented 4 months ago

Describe the bug In wezterm and alacrity the unicode transparent blocks (░▒▓) render like normal blocks (█) with varying opacity.

Wezterm output: Screenshot_17-Jul_12-22-35_18046

Kitty output: image

I am using JetBrainsMonoNL Nerd Font in both my terminals but in kitty it doesn't matter which font I use the output is always the same

kitty.conf


font_family     JetBrainsMonoNL NF Bold
font_size       12.0
bold_font       auto
italic_font      auto
bold_italic_font auto

background_opacity 0.75
confirm_os_window_close 1

# change to x11 or wayland or leave auto
linux_display_server auto

scrollback_lines 2000
wheel_scroll_min_lines 1

enable_audio_bell no

window_padding_width 4

tab_bar_min_tabs            2
tab_bar_edge                bottom
tab_bar_style               powerline
tab_powerline_style         slanted
tab_title_template          {title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}

# BEGIN_KITTY_THEME
# Catppuccin-Mocha
include current-theme.conf
# END_KITTY_THEME

Environment details


kitty 0.35.2 created by Kovid Goyal
Linux cassendra 6.9.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 12 Jul 2024 00:06:53 +0000 x86_64
Arch Linux 6.9.9-arch1-1 (/dev/tty)

Running under: Wayland (Hyprland v0.41.2,) missing: single_pixel_buffer
OpenGL: '3.1.0 NVIDIA 555.58.02' Detected version: 3.1
Frozen: False
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /usr/bin/zsh
Loaded config files:
  /home/kerick/.config/kitty/kitty.conf

Config options different from defaults:
background_opacity      0.75
confirm_os_window_close 1
enable_audio_bell       False
font_family             JetBrainsMonoNL NF Bold
font_size               12.0
tab_bar_style           powerline
tab_powerline_style     slanted
tab_title_template      {title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}
window_padding_width    FloatEdges(left=4.0, top=4.0, right=4.0, bottom=4.0)
Colors:
    active_border_color     #b4befe   
    active_tab_background   #cba6f7   
    active_tab_foreground   #11111b   
    background              #1e1e2e   
    bell_border_color       #f9e2af   
    color0                  #45475a   
    color1                  #f38ba8   
    color10                 #a6e3a1   
    color11                 #f9e2af   
    color12                 #89b4fa   
    color13                 #f5c2e7   
    color14                 #94e2d5   
    color15                 #a6adc8   
    color2                  #a6e3a1   
    color3                  #f9e2af   
    color4                  #89b4fa   
    color5                  #f5c2e7   
    color6                  #94e2d5   
    color7                  #bac2de   
    color8                  #585b70   
    color9                  #f38ba8   
    cursor                  #f5e0dc   
    cursor_text_color       #1e1e2e   
    foreground              #cdd6f4   
    inactive_border_color   #6c7086   
    inactive_tab_background #181825   
    inactive_tab_foreground #cdd6f4   
    mark1_background        #b4befe   
    mark1_foreground        #1e1e2e   
    mark2_background        #cba6f7   
    mark2_foreground        #1e1e2e   
    mark3_background        #74c7ec   
    mark3_foreground        #1e1e2e   
    selection_background    #f5e0dc   
    selection_foreground    #1e1e2e   
    tab_bar_background      #11111b   
    url_color               #f5e0dc   

Important environment variables seen by the kitty process:
    PATH                                /usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin
    LANG                                en_US.UTF-8
    SHELL                               /usr/bin/zsh
    DISPLAY                             :1
    WAYLAND_DISPLAY                     wayland-1
    USER                                kerick
    XCURSOR_SIZE                        24
    XDG_SESSION_PATH                    /org/freedesktop/DisplayManager/Session3
    XDG_BACKEND                         wayland
    XDG_SEAT                            seat0
    XDG_SESSION_DESKTOP                 Hyprland
    XDG_SESSION_TYPE                    wayland
    XDG_CURRENT_DESKTOP                 Hyprland
    XDG_SEAT_PATH                       /org/freedesktop/DisplayManager/Seat0
    XDG_SESSION_CLASS                   user
    XDG_VTNR                            1
    XDG_SESSION_ID                      5
    XDG_RUNTIME_DIR                     /run/user/1000
    XDG_DATA_DIRS                       /home/kerick/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop

Additional context

I am using ZSH as my shell and oh-my-zsh for the plugin manager the prompt is from powerlevel10k theme

kovidgoyal commented 4 months ago

That is the correct appearance for those blocks. They are characters defined in the Unicode spec, with a defined appearance. kitty follows the spec, alacritty and wezterm dont.

TriDEntApollO commented 4 months ago

That is the correct appearance for those blocks. They are characters defined in the Unicode spec, with a defined appearance. kitty follows the spec, alacritty and wezterm dont.

is there a way to change that?

kovidgoyal commented 4 months ago

no, the point of having a spec is so that everyone can rely on it.