bar icon indicating copy to clipboard operation
bar copied to clipboard

Kerning issues?

Open tpict opened this issue 8 years ago • 3 comments

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.

tpict avatar Sep 20 '15 20:09 tpict

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

krypt-n avatar Sep 20 '15 20:09 krypt-n

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.

tpict avatar Sep 20 '15 21:09 tpict

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

stephen304 avatar Dec 17 '15 18:12 stephen304