xterm.js icon indicating copy to clipboard operation
xterm.js copied to clipboard

Support font-stretch

Open socketpair opened this issue 6 years ago • 4 comments

I decide to use Iosevka font. But I want font-stretch: expanded version. Unfortunately there is no easy way to use it (except hacking with the filenames browser loads).

socketpair avatar May 24 '20 23:05 socketpair

As long as this works in canvas, seems like a reasonable request.

Tyriar avatar May 26 '20 14:05 Tyriar

Yep, it's just one more font attribute like weight or size

socketpair avatar May 26 '20 16:05 socketpair

Low support still I notice https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fontStretch

Image

Tyriar avatar Dec 15 '22 15:12 Tyriar

Opened #5811 adding a fontStretch option that accepts the CSS keyword range and flows through the DOM renderer (CSS + WidthCache) and the WebGL addon (TextureAtlas + BaseRenderLayer + CharAtlas config hash).

dolonet avatar Apr 13 '26 00:04 dolonet