~strahinja/dmenu

2ed290d398cab8d96342453b9af073daf011bf2a — Страхиња Радић a month ago f286e73
Trying Nerd Fonts-patched Terminus, commented out color emoji-prohibiting code

Signed-off-by: Страхиња Радић <contact@strahinja.org>
3 files changed, 10 insertions(+), 8 deletions(-)

M config.def.h
M config.h
M drw.c
M config.def.h => config.def.h +4 -3
@@ 5,9 5,10 @@ static int topbar = 1;                      /* -b  option; if 0, dmenu appears a
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
	//"xos4 Terminus:size=12", 
	"MxPlus IBM VGA 9x16:size=12:style=Regular:antialias=false:autohint=false",
	"Symbols Nerd Font:style=2048-em:size=10:autohint=false",
        "Noto Color Emoji:style=Regular:size=10"
	//"MxPlus IBM VGA 9x16:size=12:style=Regular:antialias=false:autohint=false",
	"TerminessTTF Nerd Font:size=14:style=Medium:antialias=false:autohint=false",
	//"Symbols Nerd Font:style=2048-em:size=10:autohint=false",
        "Noto Color Emoji:style=Regular:size=12"
	//"Cozette Vector:size=9"
	//"PxPlus_IBM_VGA8 Nerd Font:size=12"
};

M config.h => config.h +4 -3
@@ 5,9 5,10 @@ static int topbar = 1;                      /* -b  option; if 0, dmenu appears a
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
	//"xos4 Terminus:size=12", 
	"MxPlus IBM VGA 9x16:size=12:style=Regular:antialias=false:autohint=false",
	"Symbols Nerd Font:style=2048-em:size=10:autohint=false",
        "Noto Color Emoji:style=Regular:size=10"
	//"MxPlus IBM VGA 9x16:size=12:style=Regular:antialias=false:autohint=false",
	"TerminessTTF Nerd Font:size=14:style=Medium:antialias=false:autohint=false",
	//"Symbols Nerd Font:style=2048-em:size=10:autohint=false",
        "Noto Color Emoji:style=Regular:size=12"
	//"Cozette Vector:size=9"
	//"PxPlus_IBM_VGA8 Nerd Font:size=12"
};

M drw.c => drw.c +2 -2
@@ 140,11 140,11 @@ xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern)
	 * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916349
	 * and lots more all over the internet.
	 */
	FcBool iscol;
	/*FcBool iscol;
	if(FcPatternGetBool(xfont->pattern, FC_COLOR, 0, &iscol) == FcResultMatch && iscol) {
		XftFontClose(drw->dpy, xfont);
		return NULL;
	}
	}*/

	font = ecalloc(1, sizeof(Fnt));
	font->xfont = xfont;