dmenu

my build of dynamic menu
git clone git://git.kocotian.pl/dmenu.git
Log | Files | Refs | README | LICENSE

commit 9ad3c4665a0566ccc8851928fba8e6b21173c9b9
parent 69e37a665a5699d43145f67ce45b169c132f3dd0
Author: kocotian <kocotian@kocotian.pl>
Date:   Wed, 30 Dec 2020 11:44:00 +0100

color glyphs + emoji

Diffstat:
Mconfig.def.h | 3++-
Mdrw.c | 13-------------
2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -5,7 +5,8 @@ static int topbar = 1; /* -b option; if 0, dmenu appears a static int fuzzy = 1; /* -F option; if 0, dmenu doesn't use fuzzy matching */ /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *fonts[] = { - "monospace:size=8" + "monospace:size=8", + "JoyPixels:pixelsize=10:antialias=true:autohint=true", }; static const char *prompt = NULL; /* -p option; prompt to the left of input field */ static const char *colors[SchemeLast][2] = { diff --git a/drw.c b/drw.c @@ -133,19 +133,6 @@ xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern) die("no font specified."); } - /* Do not allow using color fonts. This is a workaround for a BadLength - * error from Xft with color glyphs. Modelled on the Xterm workaround. See - * https://bugzilla.redhat.com/show_bug.cgi?id=1498269 - * https://lists.suckless.org/dev/1701/30932.html - * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916349 - * and lots more all over the internet. - */ - 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; font->pattern = pattern;