rio icon indicating copy to clipboard operation
rio copied to clipboard

[Feature] Add support for choosing font width

Open MrPandir opened this issue 1 year ago • 1 comments

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"

MrPandir avatar May 20 '24 11:05 MrPandir

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.

raphamorim avatar May 21 '24 09:05 raphamorim

@MrPandir implemented it according to MDN, so you can use width = "Normal" or any other variant.

It was implemented on 0ea92f8b

raphamorim avatar Nov 15 '24 20:11 raphamorim