TrilbyWhite / alopex

A tabbed tiling window manager, with fur.
36 stars 4 forks source link

Font string does not work. #40

Closed KenjiTakahashi closed 11 years ago

KenjiTakahashi commented 11 years ago

Setting -*-liberation mono-medium-r-*-*-11-*-*-*-*-*-* as font causes a crash. I'm using exactly the same (copy/pasted) string in interrobang and I've used it in other WMs, so I guess it's OK.

TrilbyWhite commented 11 years ago

Can you post the relevant line of your config?

KenjiTakahashi commented 11 years ago

Sure, it's just

static const char font[] =
    "-*-liberation mono-medium-r-*-*-11-*-*-*-*-*-*";
TrilbyWhite commented 11 years ago

What package is that font in? I only see ttf-liberation in the arch repos.

EDIT: and/or does that string match anything in a fonts.dir file?

KenjiTakahashi commented 11 years ago

Ho-hum, after playing a bit, I changed this line to

static const char font[] =
    "-*-liberation mono-medium-r-*--11-*-*-*-*-*-*-*";

(removed '*' before '11' and added one to the end) and it works like a charm. Still wonder why the previous line works in interrobang?

TrilbyWhite commented 11 years ago

Interrobang and alopex do have different font loading mechanisms. The interrobang mechanism uses a search string rather than an XLFD.