Re: [i3] Why no xft support?

  • From: Cheer Xiao <xiaqqaix@xxxxxxxxx>
  • To: "Discussions/Questions about the i3 window manager" <i3-discuss@xxxxxxxxxxxxx>
  • Date: Sun, 11 Mar 2012 23:28:12 +0800

2012/3/11 Fernando Lemos <fernandotcl@xxxxxxxx>:

On Sun, Mar 11, 2012 at 12:03 PM, Cheer Xiao <xiaqqaix@xxxxxxxxx> wrote:
2012/3/11 Fernando Lemos <fernandotcl@xxxxxxxx>:
[...snip...]
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".

So I switched to a simpler one, "font Consolas 10". Problem still. In
the log there is a line

ERROR: Could not open font xft:Consolas 10 (X error 15). Trying
fallback to 'fixed'.

and far below that, just before I restart i3:

[src/xcb.c:945] ERROR: Could not open font. X Error Code: 15

Weird since src/xcb.c doesn't has line 945... I also noticed that
i3bar disappeared too, but there is no log message related to that.

src/xcb.c:945 is in i3bar/src/xcb.c (it's probably i3bar's stderr).

The "xft:" prefix is only handled if your i3 is patched, which leads
me to think that you're getting that message from an unpatched
i3/i3bar.


I did a git am:

~/src/i3$ git log

commit 3389908a213b2afba75fe61c92466a08aefb24c5
Author: Fernando Tarlá Cardoso Lemos <fernandotcl@xxxxxxxxx>
Date: Mon Nov 14 21:39:03 2011 -0200

Implement Pango rendering.

...


--
Regards,
Cheer Xiao aka. xiaq

Other related posts: