Skip to content

Conversation

@Tyriar
Copy link
Member

@Tyriar Tyriar commented Mar 14, 2024

Fixes #4969

I've tried to keep the overhead for the webgl renderer as small as possible, there's just a check for an option (via optimized rawOptions) and fetching the width of each cell from content.

Webgl with the setting off:

image

Webgl with the setting on:

image

I looked into dynamically resizing based on the following glyph but it ended up feeling weird seeing the glyphs change. The VIII in particular seems pretty hard to read which is probably a combination of letting the GPU handle interpolation (good for perf but it might be using nearest pixel?) and it tries to pack a lot of stuff into a small cell on a standard DPI screen (high DPI would be fine).

The setting is opt-in in xterm.js and the plan is to enable it by default in VS Code.

@Tyriar Tyriar added this to the 5.5.0 milestone Mar 14, 2024
@Tyriar Tyriar self-assigned this Mar 14, 2024
@Tyriar Tyriar marked this pull request as ready for review March 14, 2024 16:50
@Tyriar Tyriar merged commit 44feecf into xtermjs:master Mar 14, 2024
1atAlcone

This comment was marked as spam.

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.

Automatic glyph scaling based on unicode width and following character content

2 participants