TheBB / spaceline

Powerline theme from Spacemacs
GNU General Public License v3.0
534 stars 60 forks source link

feature request: support variable width fonts #207

Closed neeasade closed 3 years ago

neeasade commented 5 years ago

using a variable width 'mode-line font results in a big empty space at the right:

bottom right

TheBB commented 5 years ago

I'm not sure how easy this would be. To properly align the right hand side of the modeline, the middle is filled with an amount of whitespace that needs to be carefully calculated (total width minus width of left and right side). Variable width fonts would screw that up.

neeasade commented 5 years ago

Thanks for getting back to me. I suspected that might be the case/it would not be possible to reliably do cross platform. I might see if I can get it going on just my home maching with something like txtw, which can query width of text strings.

deb0ch commented 5 years ago

Didn't Emacs 26 introduce functions for calculating character and string width?