Sixel image wrong aspect ratio when using certain fonts #22868

Open
opened 2026-01-31 08:25:44 +00:00 by claunia · 0 comments
Owner

Originally created by @ZhangTianrong on GitHub (Feb 7, 2025).

Windows Terminal version

1.22.10352.0

Windows build number

10.0.22631.0

Other Software

yazi v25.2.7

Steps to reproduce

See this issue for detailed information and steps to reproduce. Basically, if you set the terminal font to be one with both powerline/nerd and CJK support like Sarasa Term SC Nerd Font or Consolas with Yahei. The image displayed is distorted in Windows Terminal, while no such problem exists in other terminals like iTerm2 or WezTerm when viewing it with a sixel image viewer like yazi or lsix.

Expected Behavior

The aspect ratio of the sixel images should keep consistent with the actual image and has nothing to do with the terminal font.

Image

(I just changed the font without re-running the commands, but the ratio won't be fixed if you re-run it after changing the font.)

Actual Behavior

Image

Originally created by @ZhangTianrong on GitHub (Feb 7, 2025). ### Windows Terminal version 1.22.10352.0 ### Windows build number 10.0.22631.0 ### Other Software yazi v25.2.7 ### Steps to reproduce See [this issue](https://github.com/sxyazi/yazi/issues/2074#issue-2753443430) for detailed information and steps to reproduce. Basically, if you set the terminal font to be one with both powerline/nerd and CJK support like [Sarasa Term SC Nerd Font](https://github.com/laishulu/Sarasa-Term-SC-Nerd) or [Consolas with Yahei](https://github.com/crvdgc/Consolas-with-Yahei). The image displayed is distorted in Windows Terminal, while no such problem exists in other terminals like [iTerm2](https://github.com/gnachman/iTerm2) or [WezTerm](https://github.com/wez/wezterm) when viewing it with a sixel image viewer like [yazi](https://github.com/sxyazi/yazi) or [lsix](https://github.com/hackerb9/lsix). ### Expected Behavior The aspect ratio of the sixel images should keep consistent with the actual image and has nothing to do with the terminal font. ![Image](https://github.com/user-attachments/assets/e9937009-9725-44ff-b2d8-2c0426436804) (I just changed the font without re-running the commands, but the ratio won't be fixed if you re-run it after changing the font.) ### Actual Behavior ![Image](https://github.com/user-attachments/assets/d0d5b868-4365-4f44-99e6-1a9cac0a1906)
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:25:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22868