Re: [i3] Why no xft support?

  • From: Fernando Lemos <fernandotcl@xxxxxxxx>
  • To: "Discussions/Questions about the i3 window manager" <i3-discuss@xxxxxxxxxxxxx>
  • Date: Sun, 11 Mar 2012 11:33:59 -0300

On Sun, Mar 11, 2012 at 2:50 AM, Cheer Xiao <xiaqqaix@xxxxxxxxx> wrote:

2012/2/21 DR <drdarkraven@xxxxxxxxx>:
On Mon, Feb 20, 2012 at 7:14 AM, Fernando Lemos <fernandotcl@xxxxxxxx> wrote:
On Sun, Feb 19, 2012 at 11:27 AM, Fernando Lemos <fernandotcl@xxxxxxxx>
wrote:
Hi,

On Sun, Feb 19, 2012 at 7:54 AM, DR <drdarkraven@xxxxxxxxx> wrote:
If you send me the patch, I'd be glad to test it.

1/2: http://pastebin.com/Kw6srqZE

Ugh. A revised patch that takes into account the alpha component in colors:

1/2: http://pastebin.com/zuyTSXKB

I'm running i3 with your patch now.
While i3 is working well with this patch, I notice some glitches.

The text's width seems to be mis-calculated, resulting in window title
being truncated even if the text string is far from filling the whole
title bar.
Another thing I notice is that the string seems to be truncated to a
'wrong' length, leaves some trailing, undisplayable characters.

These glitches mainly occur if non-english characters are involved.

Screenshots attached.

Care to share how you use this patch? I have already applied the
patch, rebuilt and reinstalled i3. After skimming the code, I decided
to try

font xft:Bitstream Vera Sans Mono 10

in ~/.i3/config but it failed. :'(

Hi,

That's exactly how you should specify the font. :-)

Check your logs, that's probably not a valid font description. After
"xft:", you can specify any Pango font description. I personally use
"font xft:Sans 8".

Regards,

Other related posts: