Rendering of some escape codes are broken on some fonts #19409

Open
opened 2026-01-31 06:42:28 +00:00 by claunia · 0 comments
Owner

Originally created by @HarukaMa on GitHub (Feb 19, 2023).

Originally assigned to: @lhecker on GitHub.

Windows Terminal version

1.16.10261.0, also main branch

Windows build number

10.0.19044.2364

Other Software

Most TUI programs

Steps to reproduce

The screenshot below uses make menuconfig on Linux kernel source and tool aptitude, but many TUI applications show this behavior as well. Try using some with specific fonts and you will spot it.

Expected Behavior

Might be the most ambiguous issue title I've written in a while, but I'm not quite sure what's causing it. I'll explain below.

(Warning, lots of screenshots)

When using common monospaced fonts, the rendering is fine:

Consolas:
image

Lucida Console:
image

and a third-party one:

MxPlus IBM VGA font:
image

Actual Behavior

However, when using some fonts (didn't find out the specifics here), the rendering is borked. Notice that the checkboxes are not aligned anymore, some characters are missing, and the window borders are broken:

PC-98 font:
image

That's a third-party font, however some standard fonts are showing this as well:

SimHei:
image

MS Gothic:
image

Tried with AtlasEngine both on and off and nothing changed (it didn't need a restart right?).

Originally created by @HarukaMa on GitHub (Feb 19, 2023). Originally assigned to: @lhecker on GitHub. ### Windows Terminal version 1.16.10261.0, also main branch ### Windows build number 10.0.19044.2364 ### Other Software Most TUI programs ### Steps to reproduce The screenshot below uses `make menuconfig` on Linux kernel source and tool `aptitude`, but many TUI applications show this behavior as well. Try using some with specific fonts and you will spot it. ### Expected Behavior Might be the most ambiguous issue title I've written in a while, but I'm not quite sure what's causing it. I'll explain below. (Warning, lots of screenshots) When using common monospaced fonts, the rendering is fine: Consolas: ![image](https://user-images.githubusercontent.com/861659/219931690-7a13f67b-e97d-435a-97f0-106b67621d79.png) Lucida Console: ![image](https://user-images.githubusercontent.com/861659/219931703-75769b39-4055-4327-8f39-b7e85a968c8f.png) and a third-party one: MxPlus IBM VGA font: ![image](https://user-images.githubusercontent.com/861659/219931901-5bb80f2d-86b5-417b-a0a5-3b794ffeee16.png) ### Actual Behavior However, when using *some* fonts (didn't find out the specifics here), the rendering is borked. Notice that the checkboxes are not aligned anymore, some characters are missing, and the window borders are broken: PC-98 font: ![image](https://user-images.githubusercontent.com/861659/219931792-d80b42d1-6d6f-4313-8b7b-f09c6e3a9ff3.png) That's a third-party font, however some standard fonts are showing this as well: SimHei: ![image](https://user-images.githubusercontent.com/861659/219931931-a73145e2-3509-49f0-94ce-37e5f99e33a1.png) MS Gothic: ![image](https://user-images.githubusercontent.com/861659/219931988-188c0d65-5e95-441e-9c62-00019c74a3f9.png) Tried with AtlasEngine both on and off and nothing changed (it didn't need a restart right?).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19409