diff options
author | Dawid Potocki <dawid@dawidpotocki.com> | 2022-07-14 22:47:58 +1200 |
---|---|---|
committer | Dawid Potocki <dawid@dawidpotocki.com> | 2022-07-14 22:47:58 +1200 |
commit | 8b6aeac39ef54acd001717814b4c922347ce3c8b (patch) | |
tree | 0f2bc5a0d3177bd24783e882e363656a87bd2a02 | |
parent | dd3dfe2eacf6d4e1955542146065bdf32ccbb886 (diff) |
-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; |