Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

Kerning issues? #16

Open
tpict opened this issue Sep 20, 2015 · 3 comments
Open

Kerning issues? #16

tpict opened this issue Sep 20, 2015 · 3 comments

Comments

@tpict
Copy link

tpict commented Sep 20, 2015

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
Copy link
Owner

krypt-n commented Sep 20, 2015

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
Copy link
Author

tpict commented Sep 20, 2015

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants