Re: [dev] [dmenu] Handle invalid font names

From: Hiltjo Posthuma <>
Date: Mon, 19 Oct 2015 22:36:06 +0200

On Mon, Oct 19, 2015 at 11:53 AM, Ilias Tsitsimpis
<> wrote:
> Hi suckless team,
> I noticed that dmenu doesn't complain when supplied with a font that
> doesn't exist (e.g., dmenu -fn suckless).
> I found the following line in the code:
> drw.c:134 fprintf(stderr, "error, cannot load font: '%s'\n", fontname);
> so I am guessing this is a bug and not the intended behavior.

I'm aware of this behaviour, it is "intended" as we use Xft and it's
not too bothersome.

Ofcourse you can use the fc-match program to see what font actually
will be used.

Note that dmenu will error out when no font can be loaded: if
(!drw->fontcount) in dmenu.c.

Kind regards,
Received on Mon Oct 19 2015 - 22:36:06 CEST

This archive was generated by hypermail 2.3.0 : Mon Oct 19 2015 - 22:48:09 CEST