commit 7e5f3b3e2cc88d5363f9e951862f422b78cf40e2
parent 9712ea02fd4c2a335b23247346c2ffd3f30e47cf
Author: Alex Balgavy <alex@balgavy.eu>
Date: Fri, 8 Oct 2021 13:54:01 +0200
Show colored icons
Diffstat:
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/config.h b/config.h
@@ -4,7 +4,9 @@
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
- "MesloLGS NF:size=10"
+ "MesloLGS NF:size=10",
+ "Noto Color Emoji:pixelsize=14:antialias=true:autohint=true",
+ "Unifont:pixelsize=14:antialias=true:autohint=true"
};
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
diff --git a/drw.c b/drw.c
@@ -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;
- if(FcPatternGetBool(xfont->pattern, FC_COLOR, 0, &iscol) == FcResultMatch && iscol) {
- XftFontClose(drw->dpy, xfont);
- return NULL;
- }
+ // 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;