Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font doesn't look right #94

Closed
ghost opened this issue Sep 11, 2017 · 4 comments
Closed

Font doesn't look right #94

ghost opened this issue Sep 11, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Sep 11, 2017

Following an update:
http://imgur.com/a/kx8mo

Any fix to the detached triangle character things?

@greshake
Copy link
Owner

Had that issue, too. Fiddling with the font size helped... In any case, it's not something we can take influence on with the i3bar protocol. Go look over there (i3bar) if you still can't fix it :)

@ghost
Copy link
Author

ghost commented Sep 11, 2017

Setting font size to 7.9 seemed to fix it, thanks!

@GladOSkar
Copy link
Contributor

GladOSkar commented Jul 25, 2018

Fiddling with the font size did not work for me.

I finally got around to looking at this again and did some research on my own

The problem is the following: Above the top and below the baseline of the text, 3 logical pixels are added by i3 because it looks better. Unfortunately, we do not want this behavior to occur with the powerline sparators.

So i wrote this patch for the pango text rendering in i3 which just renders the powerline characters bigger and moves them to the right spot.

This is very hacky, may not work on other resolutions and has the font hardcoded, but it's something, in case someone is still searching:

https://gist.github.com/GladOSkar/408d3722be33f1a6da18950a9db83bf3

Now i have perfect edges:

image

@atheriel
Copy link
Collaborator

@GladOSkar that's a very nice reference experiment to have on hand!

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

No branches or pull requests

3 participants