Skip to content

Terminal: Disable bold, tweak line height#3215

Merged
david-crespo merged 2 commits into
mainfrom
terminal-line-height-no-bold
Jun 3, 2026
Merged

Terminal: Disable bold, tweak line height#3215
david-crespo merged 2 commits into
mainfrom
terminal-line-height-no-bold

Conversation

@benjaminleonard
Copy link
Copy Markdown
Contributor

Line Height
In xterm.js, lineHeight is a multiplier on the measured cell height, not the font size. So a lineHeight of 1 is actually closer to what we'd expect here.

Bold
There seems to be a bug where setting bold makes the cell width wider. Not sure if this is on xterm.js or its the font metrics. Better instead to just disable bold.

Before:
image

After:
image

@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
console Ready Ready Preview May 13, 2026 2:04pm

Request Review

@benjaminleonard benjaminleonard changed the title Disable bold, tweak line height Terminal: Disable bold, tweak line height May 13, 2026
@benjaminleonard
Copy link
Copy Markdown
Contributor Author

benjaminleonard commented May 19, 2026

Copy link
Copy Markdown
Contributor

@charliepark charliepark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to have missed this earlier. Looks good.

lineHeight: 1,
fontWeightBold: 400,
drawBoldTextInBrightColors: true,
letterSpacing: 0,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The robot notes that these two (drawBoldTextInBrightColors: true and letterSpacing: 0) are xterm v6 defaults, so might not be necessary.

@david-crespo david-crespo merged commit 312a24c into main Jun 3, 2026
7 checks passed
@david-crespo david-crespo deleted the terminal-line-height-no-bold branch June 3, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants