Open s-ol opened 9 years ago
Could you point me at where exactly the overlapping occurs in your example? And how would a negative letterSpace make the overlapping better? I thought it reduces the space.
You need to zoom in the first picture, the triangle corners don't line up with the background next to it, but in urxvt they do. Bitmap fonts also work, but the Xft fonts look like this in bar.
Letterspace is negative because of an urxvt bug where letters are drawn too far apart, but positive letter space could help here (I think)
Letterspace is not the problem here. Adding a positive value just results in a space of the wrong colour between the delimiter and the background.
The problem is the font height. You could try to adjust bar's height manually (with -g x15 for example) and find a value that makes the triangle corners line up. I dont know if the font somehow reports a wrong height or the bar code for height is broken. Bar adds 2 pixels to the height to leave space for the underline but the problem persists after removing that offset. I looked into urxvt's source to find an answer to why the height is handled differently, but urxvt gets the same results for font height and ascent as bar just uses a different rendering function. Maybe I will look into that later
That's weird though, because the background in urxvt also extends for the whole line's height, you can fill the whole terminal with it.
I implemented similar workaround to the one mentioned by @krypt-n and it works fine.
@rr- you mean specifying a height, or in the C source? If the latter, can i see your fork somewhere?
Specifying a height and increasing font size for characters.
https://github.com/rr-/dotfiles/blob/9f9551001d30cb84abf220b348728aa865662a1c/.config/bspwm/panel#L149 https://github.com/rr-/dotfiles/blob/9f9551001d30cb84abf220b348728aa865662a1c/.config/bspwm/panel#L182
I'm having the same issue, with terminus and peep fonts. I tried different font sizes, panel heights and offset values, not getting much further. Does anybody have tips on searching for right values? Setting font size smaller makes spaces smaller, but I need big fonts bexause of high pixel density.
I'd prefer to use size 20, but spaces get too big at size 14.
Tamsyn gives same problem. Almost any pixmap font seems to do this.
This is what it looks like:
I specify the font with
other sizes are no better.
The same font looks alright in urxvt though:
maybe I can specify letterSpace for bar-aint-recursive too somehow?