raphamorim / rio

A hardware-accelerated GPU terminal emulator focusing to run in desktops and browsers.
https://raphamorim.io/rio
MIT License
3.2k stars 103 forks source link

[Feature] Add support for choosing font width #507

Open MrPandir opened 1 month ago

MrPandir commented 1 month ago

For example, a font like Iosevka provides 2 widths: Normal and Extended. And if you use customization, then it is available 7 widths: 416, 456, 500, 548, 600, 658, 720

Demonstration of what it affects:

And here is more information: MDN font-stretch

You will need to add the width parameter to the configuration file:

[fonts]
family = "Iosevka Custom"
width = 600

You may also need to provide a text version:

[fonts]
family = "Iosevka Custom"
width = "Extended"
raphamorim commented 1 month ago

Hey there @MrPandir thanks for the issue,

0.1.0 version will add support to it, the functionality already exist in the main branch but isn't released (neither accept configuration inputs yet). Will mark it to 0.1.0 tag.