wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
16.75k stars 751 forks source link

Lazygit not rendering CJK fonts in windows #3705

Closed dragove closed 1 year ago

dragove commented 1 year ago

What Operating System(s) are you seeing this problem on?

Windows

Which Wayland compositor or X11 Window manager(s) are you using?

Windows 11 Professional 22H2(22621.1702)

WezTerm version

20230408-112425-69ae8472

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

lazygit does not renders CJK fonts (It renders when I'm resizing window, but disappears after resizing is done)

The screenshot shows that Lazygit runs well on windows terminal (right side) and corrupted on wezterm (left side)

QQ截图20230511115349

An interesting thing is that if I switch branch in lazygit, it will renders correctly, but if I move my mouse, it immediately corrupts.

a

To Reproduce

config lazygit to use Chinese as its language

gui:
  language: zh

open lazygit in wezterm in a git project

Configuration

local wezterm = require("wezterm") return { default_prog = { 'nu' }, font = wezterm.font("FiraCode Nerd Font"), font_size = 18, hide_tab_bar_if_only_one_tab = true, window_padding = { left = 4, right = 4, top = 4, bottom = 4, }, window_decorations = "RESIZE", color_scheme = "Catppuccin Frappe", }

-- I also tried remove everything in config and got the same result.

Expected Behavior

CJK Fonts renders correctly

Logs

No response

Anything else?

No response

wez commented 1 year ago

Please capture a terminal recording:

*** Finished recording to /var/tmp/wezterm-recording-sF6B3u.cast.txt

The file is an asciicast (compatible with https://asciinema.org/) and can also be replayed using wezterm replay.

The terminal recording allows me to replicate what is being sent to the terminal without requiring me to install the same applications as you and replicate your configuration for everything.

dragove commented 1 year ago

It behaves more abnormal when it is in wezterm record.

wezterm-recording-zMsxtl.cast.txt

Note: I haven't press any key when I'm moving my mouse.

b

w4ngzhen commented 1 year ago

This is the same issue as mine, but it's worth noting that Windows cmd also has this problem, so I think it's a problem with lazygit.

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.