Skip to content

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

@HarukaMa

Description

@HarukaMa

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?).

Metadata

Metadata

Assignees

Labels

Area-AtlasEngineIn-PRThis issue has a related PRIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-2A description (P2)Product-TerminalThe new Windows Terminal.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions