-
Notifications
You must be signed in to change notification settings - Fork 46
Merge consecutive ASCII and UTF8 strings #12
Conversation
Best viewed with |
Did you test this with a |
It doesn't, but I think it's good enough as it is. |
After reading through the Xft source, I think that there is no way for us to call a correct function, that renders a single char correctly since Xft just calls xrender. However the approach in this PR has two problems (the one mentioned above and when using automatic fallback fonts I think) and it'd be an additional change to the xcb code, making merging commits from lemonboy's version harder. I propose a different approach: |
It makes sense to me (including the part about global variables). Do you want me to implement it? (If I was to implement it, it'd have to wait till tomorrow.) |
You could give it shot if you want to. I probably won't have time for it either until tomorrow. |
Roger, will send another PR soonish |
Actually... this seems like a lot of work and additional bookkeeping, even more than this PR introduces, due to the fact that |
Additionally, X and Y don't seem to be computed only in X and Y variables. Looks like there are some corrections applied when copying bitmaps from backbuffer with regard to current text alignment. IOTW doing things this way is nasty, IMO much nastier than the changes above. |
Do you mean the over/underlines? They shouldnt touch the font if the height is set correctly.
Indeed, I didnt think about this one. So this PR fixes the green lines everywhere in your bar or are there some left (like when changing fonts or color)? |
So what do we do? |
I will merge this, maybe with some small changes, I just didnt have a lot of time to look at it today |
Lost interest |
Should fix #9 but might regress things when it comes choosing font for different glyphs.