krypt-n / bar

Fork of bar ain't recursive - A lightweight xcb based bar. This is a hot mess, do not use
MIT License
174 stars 46 forks source link

Kerning issues? #16

Open tpict opened 8 years ago

tpict commented 8 years ago

1442779235

Here is an example of the same font (TeX Gyre Heros) rendered in a Firefox tab and in lemonbar (top). You can see that in Firefox (and its GTK menus), kerning has been applied to close the gap between the "T" and "w" which is not present in lemonbar. I'm using the infinality-bundle package for Arch Linux to handle my font rendering. I'm not really sure what's responsible for the discrepancy but I thought I should make a post in case there's a bug with the xft patch.

krypt-n commented 8 years ago

My guess is that this is caused by how lemonbar draws strings (character by character). The font rendering library can't apply any kerning that way.

Could you look at #12 and test if these changes fix the kerning? Since the original pr branch is deleted, try:

curl https://github.com/krypt-n/bar/pull/12.patch | git am
tpict commented 8 years ago

Curl returned a redirect error but using https://patch-diff.githubusercontent.com/raw/krypt-n/bar/pull/12.patch worked. It doesn't seem to have affected kerning unfortunately.

stephen304 commented 8 years ago

Could this also be related to font-awesome icons getting cut off on certain icons?

2015-12-17-130531_1366x768_scrot

Here's a zoomed gif showing the difference between the icon in my bar and the icon on the font awesome page: battery