nplan / HomeButtons

140 stars 9 forks source link

[Feature] Allow to fix the font size #33

Closed hilsonp closed 1 year ago

hilsonp commented 1 year ago

I added a label on the six buttons. All have the same number of letters but the do not all have the same font size.

This is weird and quite ugly.

Can we get a bit more control on how labels are displayed ?

image

nplan commented 1 year ago

The font size is selected based on total label width, not the number of letters. Width can be different for the same number of letters, depending on the letters.

I'll look into what would be the best way to force a label to use small font.

mcarbonne commented 1 year ago

In the meantime, you can trick the font size by adding white spaces at beginning/end of labels.

Zixim commented 1 year ago

Fixed width font ?

nplan commented 1 year ago

I think adding some spaces at the back as @mcarbonne suggested is the simplest solution here.