dmenu

git clone git://mattcarlson.org/repos/dmenu.git
Log | Files | Refs

commit b7695c74ee2f346d471c2da3a6ea292e6041b1c8
parent 47e52b51604e62e3e0be548b153a8dcb7ab231b8
Author: Matthew Carlson <matt@mcarlson.xyz>
Date:   Tue, 27 Jul 2021 21:07:52 -0400

emoji support

Diffstat:
Mconfig.h | 2+-
Mdrw.c | 13-------------
2 files changed, 1 insertion(+), 14 deletions(-)

diff --git a/config.h b/config.h @@ -16,7 +16,7 @@ static int colorprompt = 1; static char font[] = "monospace:size=10"; static const char *fonts[] = { font, - "monospace:size=10", + "Noto Color Emoji:style=Regular:size=16", }; // alpha diff --git a/drw.c b/drw.c @@ -136,19 +136,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;