sunaku / wmiirc

Ruby configuration for WMII window manager
ISC License
82 stars 26 forks source link

Document dependency on libxft2-dev #31

Closed 0x64746b closed 12 years ago

0x64746b commented 12 years ago

Without that package, loading ttf (which is the default) will fail. This will lead to client rules not working (group, tags)

I think noting this somewhere would be nice, since debugging that was nasty ;) tia dtk

sunaku commented 12 years ago

This is a compile-time dependency of wmii, correct? What operating system are you using?

0x64746b commented 12 years ago

Hmm. I don't think so. I definitely didn't recompile/install wmii after installing libxft2-dev (which potentially has libxft2 as a dependency?). I'm not sure, though, whether the problem existed before installing rumai.

It's debian wheezy.

jpablobr commented 12 years ago

Yeah, libxft2-dev seems to be Debian specific. I'm having issues with groups and tags (on Arch Linux) but I don't think that's related to that library since without sunaku wmiirc they work fine on a default wmii install.

Related to Arch Linux, according to this thread libxft should take care of ttf related stuff...

sunaku commented 12 years ago

Since the problem only appeared with my wmiirc for @0x64746b, I suspect it's because of the xft: prefix in the value of the display:font key. Try removing that prefix or specify a traditional X font (use xfontsel to choose one) instead so that wmii does not attempt to use XFT.

0x64746b commented 12 years ago

Try removing that prefix

Couldn't find a configuration that made that syntax work for me (specifying a FreeType font)

or specify a traditional X font

Works in any configuration

So specifying a FreeType font (as the generated default config does) only works for me with libxft2-dev installed (which is a runtime dependency). I have no idea whether this is debian specific, but I still recommend either changing the default or documenting the dependency. Additionally, I don't know whether it is introduced by WMII or by rumai.

libxft2-dev xft prefix traditional font no prefix
installed + + -
not installed - + -

Thx for the support!

sunaku commented 12 years ago

That is definitely a WMII dependency because the wmiirc just takes your display:font value and feeds it directly to WMII. Neither the wmiirc nor Rumai need XFT to run. :cop:

0x64746b commented 12 years ago

Yeah, well, in this case I think this ticket can be considered invalid. Tx for the consideration anyway.