diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | config.h | 3 | ||||
-rw-r--r-- | drw.c | 10 |
3 files changed, 9 insertions, 6 deletions
@@ -8,6 +8,8 @@ Make sure you have dependencies installed before you build dmenu. ### Dependencies +`libxft-bgra`<sup>AUR</sup> is required for colour emoji support. + ```sh $ sudo pacman -S libxinerama libxft # Arch Linux ``` @@ -6,7 +6,8 @@ static const char *prompt = NULL; /* -p option; prompt to the left of input fi /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *fonts[] = { - "monospace:pixelsize=15:antialias=true:hintstyle=hintmedium" + "monospace:pixelsize=15:antialias=true:hintstyle=hintmedium", + "emoji:pixelsize=15" }; static const char *colors[SchemeLast][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; - 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; |